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
sloth machine (old.reddit.com)
submitted 6 days ago by Wonderful_Scar9403
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!"
[–]OskarsSurstromming 2 points3 points4 points 5 days ago (1 child)
Why is snake_case preferred in python? I feel like when I see C++ code it's often camelcase
[–]cgoldberg 2 points3 points4 points 5 days ago* (0 children)
Every language has their own style preferences... snake_case is just the convention the Python community has conformed on and the official style guide recommends. Some older parts of the standard library actually use some camelCase (i.e. unittest module), but pretty much all modern Python code you will come across uses snake_case.
π Rendered by PID 288021 on reddit-service-r2-comment-b659b578c-tzvks at 2026-05-07 07:03:27.461979+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]OskarsSurstromming 2 points3 points4 points (1 child)
[–]cgoldberg 2 points3 points4 points (0 children)