Check out the Best Porn Sites for an ad-free browsing experience!


191,989 subscribers a community for 9 years, 9 months

last post today [+]

news about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python

If you are about to ask a question, please consider r/learnpython or the learn python discord. Homework-style questions will be removed, and you'll be encouraged to post there instead.

Please don't use URL shorteners

Posting code to this subreddit:

Add 4 extra spaces before each line of code

def fibonacci():
    a, b = 0, 1
    while True:
        yield a
        a, b = b, a + b

Online Books and Resources

Online exercices

programming challenges

Asking Questions

Try Python in your browser



Related subreddits

  • /r/pythoncoding (strict moderation policy for 'programming only' articles)
  • /r/flask (web microframework)
  • /r/django (web framework for perfectionists with deadlines)
  • /r/pygame (a set of modules designed for writing games)
  • /r/IPython (interactive environment)
  • /r/inventwithpython (for the books written by /u/AlSweigart)
  • /r/pystats (python in statistical analysis and machine learning)
  • /r/coolgithubprojects (filtered on Python projects)
  • /r/pyladies (women developers who love python)
  • /r/git and /r/mercurial - don't forget to put your code in a repo!

Python jobs



this reddit has been tagged

keeping track of 1,122,588 reddits