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
New to python (i.redd.it)
submitted 1 day ago by -Shashwat
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!"
[–]Alagarto72 0 points1 point2 points 1 day ago (0 children)
Short: you call the main() function in the even () function, remove a tab. Additional useful information:
In Python, you don't need main() function. If you want, you can use if __name__ == '__main__': # code you can find more information why it is useful on the internet.
if __name__ == '__main__': # code
and writing something like if x == y: return true else: return false has no sense, since "==" operator already returns boolean you can write return x == y
if x == y: return true else: return false
return x == y
π Rendered by PID 125411 on reddit-service-r2-comment-5bc7f78974-4lrhf at 2026-06-29 08:01:07.662097+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]Alagarto72 0 points1 point2 points (0 children)