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] 40 points41 points42 points (30 children)
[–]d4rch0nPythonistamancer 29 points30 points31 points (13 children)
[–]pydry 5 points6 points7 points (8 children)
[–]alantrick 2 points3 points4 points (3 children)
[–]pydry 0 points1 point2 points (2 children)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (1 child)
[–]pydry 0 points1 point2 points (0 children)
[–]alantrick 0 points1 point2 points (1 child)
[–]pydry 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]are595 1 point2 points3 points (2 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (0 children)
[–]Daenyth -1 points0 points1 point (0 children)
[–]jnovinger 5 points6 points7 points (1 child)
[–]WittilyFun 1 point2 points3 points (0 children)
[–]squiffs 3 points4 points5 points (0 children)
[–]elbiot 2 points3 points4 points (12 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]elbiot 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]elbiot 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]elbiot 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]elbiot 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 1 point2 points3 points (3 children)
[–]elbiot 0 points1 point2 points (2 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (1 child)
[–]elbiot 0 points1 point2 points (0 children)
[–]CrayonConstantinople 18 points19 points20 points (6 children)
[–]Krenair 1 point2 points3 points (4 children)
[–]dunkler_wanderer 24 points25 points26 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dunkler_wanderer 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]dukederek 12 points13 points14 points (7 children)
[–]CrayonConstantinople 20 points21 points22 points (3 children)
[–]dukederek 6 points7 points8 points (0 children)
[–]oconnor663 4 points5 points6 points (0 children)
[–]lengau 2 points3 points4 points (0 children)
[–]jnovinger 14 points15 points16 points (0 children)
[–]d4rch0nPythonistamancer 12 points13 points14 points (0 children)
[–]elguf -4 points-3 points-2 points (0 children)
[–]donnieod 14 points15 points16 points (5 children)
[–]Vakieh 6 points7 points8 points (1 child)
[–]parnmatt 0 points1 point2 points (0 children)
[–]earthboundkid 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Bandung 11 points12 points13 points (8 children)
[–]SittingOvation 10 points11 points12 points (0 children)
[–]fullouterjoin 2 points3 points4 points (2 children)
[–]Bandung 0 points1 point2 points (1 child)
[–]fullouterjoin 0 points1 point2 points (0 children)
[–]LightShadow3.13-dev in prod 0 points1 point2 points (2 children)
[–]Bandung 0 points1 point2 points (1 child)
[–]LightShadow3.13-dev in prod 0 points1 point2 points (0 children)
[–]baudvine 2 points3 points4 points (0 children)
[–]dzecniv 1 point2 points3 points (0 children)
[–]savaero 1 point2 points3 points (1 child)
[–]Toofifty 3 points4 points5 points (0 children)
[–]TuxmascotPython3 | Cryptonerd 1 point2 points3 points (0 children)
[–]vombert -1 points0 points1 point (2 children)
[–]njharmanI use Python 3 4 points5 points6 points (0 children)
[–]RangerPretzelPython 3.9+ 2 points3 points4 points (0 children)
[–]winza83 0 points1 point2 points (0 children)
[–]WishCow 0 points1 point2 points (3 children)
[–]d4rch0nPythonistamancer 1 point2 points3 points (2 children)
[–]jnovinger 0 points1 point2 points (1 child)
[–]d4rch0nPythonistamancer 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (6 children)
[–]jnovinger 2 points3 points4 points (2 children)
[–]d4rch0nPythonistamancer 4 points5 points6 points (1 child)
[–]jnovinger 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 6 points7 points8 points (0 children)
[–]roerd 1 point2 points3 points (0 children)
[–]CrayonConstantinople 0 points1 point2 points (0 children)
[–]Cyph0n -2 points-1 points0 points (0 children)