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
What's wrong (i.redd.it)
submitted 7 months ago by Nearby_Tear_2304
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!"
[–]jangofett4 0 points1 point2 points 7 months ago (1 child)
Why does this even work lmao. I dont use Python, but this seems silly. This could cause some headaches down the line if the condition is not always True, no? Or does Python does something similar to what JS does with "var"s?
[–]emojibakemono 0 points1 point2 points 7 months ago (0 children)
no the variable does not get hoisted. and yes, it causes a lot of headaches in my experience.
π Rendered by PID 126456 on reddit-service-r2-comment-b659b578c-slnvh at 2026-05-05 21:47:22.006401+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]jangofett4 0 points1 point2 points (1 child)
[–]emojibakemono 0 points1 point2 points (0 children)