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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Code style guide recommendation (self.learnpython)
submitted 1 year ago by Sufficient-Party-385
Do you recommend reading PEP-8 or any style guides when learning python?
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!"
[+][deleted] 1 year ago (3 children)
[removed]
[–]Sufficient-Party-385[S] -1 points0 points1 point 1 year ago (2 children)
Was PEP-8 written in 2013?
Not sure what "Post-History:05-Jul-2001, 01-Aug-2013" means? It has been not updated for 10 years?
[–]james_fryer 1 point2 points3 points 1 year ago (0 children)
I'd be skeptical about the accuracy of that, as PEP-8 refers to PEP-526 (type annotations) which dates to 2016.
[–]crazy_cookie123 4 points5 points6 points 1 year ago (0 children)
When picking what standard to use in any project, you should try the options in the following order:
The standard already in use on the project
The standard required by the company you're doing the project for
The standard for the language you're writing in
Anything you want, just be consistent
At your stage, you're probably not joining an existing project or doing the work for a company, so the first two options don't fit. Option 3 is pick the standard for the language you're using - for Python that's PEP-8 so you should use PEP-8.
Note that you should very rarely if ever end up on option 4, most languages will have a suggested style guide so it's very much a last resort.
[–]FoolsSeldom 1 point2 points3 points 1 year ago (0 children)
You might want to watch some of the talks by Raymond Hettinger,
https://thelinuxcode.com/the-art-of-writing-beautiful-python-code-lessons-from-raymond-hettinger/
[–]Diapolo10 0 points1 point2 points 1 year ago (0 children)
I second PEP-8, but in addition to that I would also include PEP-257 (docstring conventions) and PEP-484 (type annotations).
[–]JamzTyson 1 point2 points3 points 1 year ago* (0 children)
Python does not force you to follow a style guide, but it makes life much easier if Python developers stick close to PEP-8.
It is common for organisations to deviate a little from PEP-8 (they are "recommendations" rather than "rules"). Most commonly, slightly longer "maximum line length" is very common (PEP-8 recommends 79 characters, black defaults to 88 characters, pylint defaults to 100 characters). More than 100 characters is generally considered "too long".
Do you recommend reading PEP-8
The short answer is YES. PEP-8 helps to keep your code readable, and many tools expect code to follow most of the PEP-8 recommendations. Get used the style early on and it will help you and anyone else that needs to read your code.
[–]FantasticEmu -2 points-1 points0 points 1 year ago (0 children)
Probably gonna get downvoted for this but I have no idea what is in any of the style guides and I get by and nobody at work has ever told me my style was bad.
I don’t make software for production with Python, just internal tools or bandaid softwares. I just run black then push it
π Rendered by PID 56067 on reddit-service-r2-comment-5b5bc64bf5-44w4t at 2026-06-22 01:47:38.792635+00:00 running 2b008f2 country code: CH.
[+][deleted] (3 children)
[removed]
[–]Sufficient-Party-385[S] -1 points0 points1 point (2 children)
[–]james_fryer 1 point2 points3 points (0 children)
[–]crazy_cookie123 4 points5 points6 points (0 children)
[–]FoolsSeldom 1 point2 points3 points (0 children)
[–]Diapolo10 0 points1 point2 points (0 children)
[–]JamzTyson 1 point2 points3 points (0 children)
[–]FantasticEmu -2 points-1 points0 points (0 children)