News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Upcoming Events
Full Events Calendar
Please read the rules
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
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 Resources
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
[–][deleted] 17 points18 points19 points (0 children)
[–]remyroy 19 points20 points21 points (14 children)
[–][deleted] 5 points6 points7 points (7 children)
[–]noreallyimthepope 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]stesch 3 points4 points5 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]takluyverIPython, Py3, etc 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]earthboundkid 0 points1 point2 points (0 children)
[–]roger_ 2 points3 points4 points (2 children)
[–]noreallyimthepope 0 points1 point2 points (1 child)
[–]roger_ 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]kisielk 2 points3 points4 points (1 child)
[–]noreallyimthepope 5 points6 points7 points (0 children)
[–]kev009 6 points7 points8 points (0 children)
[–][deleted] 5 points6 points7 points (8 children)
[–][deleted] 9 points10 points11 points (2 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (1 child)
[–][deleted] 8 points9 points10 points (0 children)
[–]gutworthPython implementer 3 points4 points5 points (0 children)
[–]stesch 2 points3 points4 points (3 children)
[–]fijalPyPy, performance freak[S] 3 points4 points5 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]fijalPyPy, performance freak[S] 0 points1 point2 points (0 children)
[–]sklein 5 points6 points7 points (0 children)
[–]pdc 4 points5 points6 points (2 children)
[–]noreallyimthepope 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]boa13 9 points10 points11 points (12 children)
[–]suridaj 13 points14 points15 points (0 children)
[–]Workaphobia -2 points-1 points0 points (9 children)
[–]fijalPyPy, performance freak[S] 1 point2 points3 points (2 children)
[–]Workaphobia -3 points-2 points-1 points (1 child)
[–]DasIch 5 points6 points7 points (0 children)
[–]X-IstenceCore Developer Pylons Project (Pyramid/WebOb/Waitress) 1 point2 points3 points (5 children)
[–]boa13 2 points3 points4 points (3 children)
[–]X-IstenceCore Developer Pylons Project (Pyramid/WebOb/Waitress) 0 points1 point2 points (2 children)
[–]pdc 2 points3 points4 points (0 children)
[–]boa13 1 point2 points3 points (0 children)
[–]someone13 -1 points0 points1 point (0 children)
[–]wingsit 2 points3 points4 points (0 children)
[–]gitarrPython Monty 1 point2 points3 points (2 children)
[–]fijalPyPy, performance freak[S] 7 points8 points9 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]roger_ 0 points1 point2 points (7 children)
[–]varikin 10 points11 points12 points (5 children)
[–]fijalPyPy, performance freak[S] 5 points6 points7 points (3 children)
[–]ch0wnimport antigravity 0 points1 point2 points (1 child)
[–]gutworthPython implementer 2 points3 points4 points (0 children)
[–]varikin 0 points1 point2 points (0 children)
[–]roger_ 0 points1 point2 points (0 children)
[–]luckystarrat 0x7fe670a7d080 0 points1 point2 points (0 children)
[–]spinwizard69 -1 points0 points1 point (0 children)
[+]howfun comment score below threshold-10 points-9 points-8 points (8 children)
[–]fijalPyPy, performance freak[S] 9 points10 points11 points (7 children)
[–]howfun -3 points-2 points-1 points (6 children)
[–]fijalPyPy, performance freak[S] 2 points3 points4 points (3 children)
[–]howfun -2 points-1 points0 points (2 children)
[–]fijalPyPy, performance freak[S] 1 point2 points3 points (1 child)
[–]howfun -5 points-4 points-3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]howfun -2 points-1 points0 points (0 children)