Learn the basics of Python live from Sam Focht every Tuesday. This is part of a series that will cover the entire Python Programming language.
Check out Sam’s YouTube channel: https://www.youtube.com/python_basics
Python Basics with Sam playlist: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkmRvnFmOd4KhDdlK1oIq23
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news
And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp
source
Haii thanks for the video!!
Programming is for nerds🤮
Why is command line still a thing?
Thank you Sam, you are awesome.
Everything must be in dark mode its bad in white ???
watch it at 1.25 and thanks to me later.
Reason why 0! is 1:
6! = 720
5! = 120 (720/6)
4! = 24 (120/5)
3! = 6 (24/4)
2! = 2 ( 6/3)
1! = 1 (2/2)
0! = 1 (1/1)
Hope you got it.
If anybody is wondering why 0 == False this expression evaluates down to the Boolean value True and the answer lies on the concept of Truthy and Falsy values
So what in the world are Truthy and Falsy values ?
Well Truthy and Falsy values and individual values of whatever data type meaning that they could be ints. floats, lists, dicts and so on , that evaluate down to one of the Two Boolean values i.e that is it could be either True and False bear with me !!!
So now we can conclude that They are values or objects that evaluate down to True or False meaning that they can be used in Boolean context
As part of a Boolean expression or just alone as an if or while condition
So the question is how can we tell whether a value is Truthy( it evaluates to True) or Falsy( it evaluates to False)?
Well there's a set of rules you can look them up i am lazy to lay them off !!! set by python community that we follow through
A bit of a hint
any numeric value that is not 0 is a Truthy value and as you might guess any 0 numeric value is a Falsy value this explains why 0 == False is True because False == False is a True expression
i watch these at 1.75 speed and still think it is slow 🙂
Hi please add the time stamps for the video
After the return statement sam said that "everything is a dead code " my question is . Does all of code below gets dead or just within a function or if-else statements?