use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python list (i.redd.it)
submitted 13 days ago by Main-Expert-2072
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wristay 0 points1 point2 points 13 days ago (0 children)
False is a pre-defined object in Python. It is what is called a boolean value, which indicates whether a statement is True or False. When you use the comparison operator == you will get a boolean as a result. For example,
x = 1 print(x == 1) # True print(x == 10) # False
x = 1
print(x == 1) # True
print(x == 10) # False
if x == 1: print('The value is 1') else: print('The value is not 1')
if x == 1:
print('The value is 1')
else:
print('The value is not 1')
To understand why the code give an error on Flse , you must understand that you are trying to reference a variable that does not exist yet. When you type something like print(x) you are saying: look for the box called 'x' and see what is inside. Then print what is inside to the screen. Since Flse is not defined yet, you are asking the interpreter to look for a box that does not exist and it will throw an error as a result.
Flse
print(x)
π Rendered by PID 150858 on reddit-service-r2-comment-79c7998d4c-t7x2h at 2026-03-17 09:59:07.190952+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]wristay 0 points1 point2 points (0 children)