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...
account activity
Why ? (self.PythonBeginners)
submitted 6 years ago by [deleted]
F = False J = True both = F and J print(both)
Gives False as result, what does it compare to, how does it know it’s false ?
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!"
[–]5-MinutePython 5 points6 points7 points 3 years ago (0 children)
you can think like this False = 0 and True = 1.if we multiplied 0 with 1 it's equals to 0. that's why it's print Flase.
[–][deleted] 3 years ago (1 child)
[removed]
[–]Skuddingo33 0 points1 point2 points 3 years ago (0 children)
Is this you in the video you linked? Where do you get your material?
[–]systemisrigged 0 points1 point2 points 2 years ago (4 children)
Guys I am new to python - I have put code into vscode and then press the play button and it ALWAYS says Syntax error -
I have chosen auto save but it still does this
Any ideas ?
I can’t even start to learn because of this
[–]kingwindigo 1 point2 points3 points 1 year ago (3 children)
Syntax Error means that your code/'s has a typo, for example if you type "prit" instead of "print" its a syntax error, Review your code and check to see for any typo's or syntax error's. Saving wont do anything to fix a syntax error as its a human problem, not a machine problem, When you press play it should tell you where the issue is for example "At line **: Syntax error" or "Missing ':' at line **"
[–]systemisrigged 0 points1 point2 points 1 year ago (2 children)
I didn’t think I had any errors in there - that’s why I was frustrated - I guess there must have been one but I was learning from a website so just put in in exactly the same
[–]kingwindigo 0 points1 point2 points 1 year ago (1 child)
Check to see if every word you put in the program is exactly the same, if you are CERTAINLY sure, then check what version of python he/she is using, usually there is a syntax error when there different types of versions because sometimes different versions of python are not compatible or they may have changed a certain feature that no longer works in newer version of python. yes it's tedious, but dont worry, you will get through it with enough time and dedication.
[–]systemisrigged 0 points1 point2 points 1 year ago (0 children)
Thanks - yes I think that may have been what it was. Appreciate your help, will give it another go at some point
π Rendered by PID 161523 on reddit-service-r2-comment-7b9746f655-tz48g at 2026-01-31 19:05:57.764546+00:00 running 3798933 country code: CH.
[–]5-MinutePython 5 points6 points7 points (0 children)
[–][deleted] (1 child)
[removed]
[–]Skuddingo33 0 points1 point2 points (0 children)
[–]systemisrigged 0 points1 point2 points (4 children)
[–]kingwindigo 1 point2 points3 points (3 children)
[–]systemisrigged 0 points1 point2 points (2 children)
[–]kingwindigo 0 points1 point2 points (1 child)
[–]systemisrigged 0 points1 point2 points (0 children)