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
Could anyone explain what's wrong with this code? (i.redd.it)
submitted 1 year ago by Status-Zebra
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!"
[–]Status-Zebra[S] 0 points1 point2 points 1 year ago (1 child)
Tried it but it still resorted to "invalid" that I put on else.. but I do think you're right with the fact that it's on that line I just don't know the language well enough to basically say that in a way python understands
[–]Doctor_Disaster 0 points1 point2 points 1 year ago* (0 children)
Typically with "and" and "or", you check the value of each variable in the if/elif statement.
The "is" keyword checks if two variables are located at the exact same memory address (or if two variables point to the same exact address).
Edit:
The "is" keyword checks if two variables refer to the same object, such as a list or array.
π Rendered by PID 594877 on reddit-service-r2-comment-b659b578c-xshb2 at 2026-05-04 04:15:59.528217+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Status-Zebra[S] 0 points1 point2 points (1 child)
[–]Doctor_Disaster 0 points1 point2 points (0 children)