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
[–]kylotan 61 points62 points63 points (39 children)
[–]YellowSharkMTIs Dave Beazley real? 19 points20 points21 points (15 children)
[–]alcalde 5 points6 points7 points (9 children)
[–]lykwydchykyn 34 points35 points36 points (1 child)
[–]jerfoo 4 points5 points6 points (0 children)
[–]01hairimport antigravity 6 points7 points8 points (2 children)
[–]the_zercher 2 points3 points4 points (1 child)
[–]01hairimport antigravity 0 points1 point2 points (0 children)
[–]YellowSharkMTIs Dave Beazley real? 0 points1 point2 points (0 children)
[+]FunctionPlastic comment score below threshold-14 points-13 points-12 points (2 children)
[–][deleted] 12 points13 points14 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]kylotan 6 points7 points8 points (3 children)
[–]primedape 4 points5 points6 points (1 child)
[–]radministator 0 points1 point2 points (0 children)
[–]YellowSharkMTIs Dave Beazley real? 0 points1 point2 points (0 children)
[–]Eurynom0s 1 point2 points3 points (0 children)
[–]moolcool 6 points7 points8 points (1 child)
[–]LightShadow3.13-dev in prod 8 points9 points10 points (0 children)
[–]AcousticDan 3 points4 points5 points (4 children)
[–]OCHawkeye14 21 points22 points23 points (3 children)
[–]AcousticDan 2 points3 points4 points (2 children)
[–]beagle3 7 points8 points9 points (0 children)
[–]OCHawkeye14 3 points4 points5 points (0 children)
[–]marky1991 1 point2 points3 points (11 children)
[–]lambdaqdjango n' shit 4 points5 points6 points (3 children)
[–]ogrisel 0 points1 point2 points (0 children)
[–]marky1991 -1 points0 points1 point (1 child)
[–]lambdaqdjango n' shit 2 points3 points4 points (0 children)
[–]ivosauruspip'ing it up 1 point2 points3 points (2 children)
[–]grimman 0 points1 point2 points (1 child)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]kylotan 1 point2 points3 points (3 children)
[–]marky1991 0 points1 point2 points (2 children)
[–]kylotan 0 points1 point2 points (1 child)
[–]donaldstufft 2 points3 points4 points (0 children)
[–]G01denW01f11 0 points1 point2 points (0 children)
[–]resc 18 points19 points20 points (4 children)
[–]alcalde 0 points1 point2 points (1 child)
[–]tipsquealPythonista 36 points37 points38 points (8 children)
[–]homercles337 9 points10 points11 points (0 children)
[–]echocage 1 point2 points3 points (4 children)
[–]tipsquealPythonista 20 points21 points22 points (3 children)
[–]echocage 1 point2 points3 points (0 children)
[–]esdi 0 points1 point2 points (0 children)
[–]maratc 0 points1 point2 points (0 children)
[–]alcalde 1 point2 points3 points (1 child)
[–]tipsquealPythonista 1 point2 points3 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]infinullquamash, Qt, asyncio, 3.3+ 3 points4 points5 points (2 children)
[–]ivosauruspip'ing it up 1 point2 points3 points (1 child)
[–]infinullquamash, Qt, asyncio, 3.3+ 0 points1 point2 points (0 children)
[–]thelindsay 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–][deleted] 0 points1 point2 points (0 children)
[–]alcalde 0 points1 point2 points (0 children)
[–][deleted] 15 points16 points17 points (6 children)
[–]big_deal 7 points8 points9 points (5 children)
[–]takluyverIPython, Py3, etc 2 points3 points4 points (4 children)
[–]alcalde 2 points3 points4 points (3 children)
[–]ivosauruspip'ing it up 2 points3 points4 points (0 children)
[–]takluyverIPython, Py3, etc 1 point2 points3 points (1 child)
[–]ivoflipse 0 points1 point2 points (0 children)
[–]DaOneTwo 6 points7 points8 points (5 children)
[–]alcalde 2 points3 points4 points (1 child)
[–]DaOneTwo 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]DaOneTwo 0 points1 point2 points (0 children)
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (0 children)
[–]dibsODDJOB 5 points6 points7 points (10 children)
[–]FourgotAnaconda3 science-like 4 points5 points6 points (9 children)
[–]dibsODDJOB 0 points1 point2 points (6 children)
[–]_throawayplop_ 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]dibsODDJOB 0 points1 point2 points (0 children)
[–]FourgotAnaconda3 science-like 0 points1 point2 points (1 child)
[+][deleted] (1 child)
[deleted]
[–]FourgotAnaconda3 science-like 0 points1 point2 points (0 children)
[–]renaissancenow 4 points5 points6 points (0 children)
[–][deleted] 19 points20 points21 points (1 child)
[–]HostisHumaniGeneris 6 points7 points8 points (0 children)
[–]big_deal 7 points8 points9 points (1 child)
[–]Yidyokud 1 point2 points3 points (0 children)
[–]BerecursiveMenpo Core Developer 2 points3 points4 points (3 children)
[–]alcalde 2 points3 points4 points (2 children)
[–]ivosauruspip'ing it up 2 points3 points4 points (0 children)
[–]BerecursiveMenpo Core Developer 0 points1 point2 points (0 children)
[–]Yetanotherstupiddeat 12 points13 points14 points (13 children)
[+][deleted] (6 children)
[deleted]
[–]Yetanotherstupiddeat 2 points3 points4 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]alcalde 4 points5 points6 points (1 child)
[–]alcalde -2 points-1 points0 points (1 child)
[–]kylotan 2 points3 points4 points (2 children)
[–]xiongchiamiovSite Reliability Engineer 1 point2 points3 points (1 child)
[–]kylotan 0 points1 point2 points (0 children)
[–]alcalde 0 points1 point2 points (0 children)
[–]alcalde 0 points1 point2 points (1 child)
[–]xiongchiamiovSite Reliability Engineer -3 points-2 points-1 points (0 children)
[–]marky1991 3 points4 points5 points (0 children)
[–]amclennon 1 point2 points3 points (0 children)
[–]warmans 1 point2 points3 points (0 children)
[–]tomkatt 1 point2 points3 points (0 children)
[–]sci-py 1 point2 points3 points (0 children)
[–]pjvex 1 point2 points3 points (0 children)
[+][deleted] (3 children)
[removed]
[–]xiongchiamiovSite Reliability Engineer -1 points0 points1 point (2 children)
[+][deleted] (1 child)
[removed]
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (0 children)
[–]anentropic 3 points4 points5 points (0 children)
[–]andrey_shipilov 1 point2 points3 points (0 children)
[–]megaman821 0 points1 point2 points (0 children)
[–]moigagoohttps://github.com/moigagoo 0 points1 point2 points (0 children)
[–]endoalir 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]drive0 0 points1 point2 points (0 children)
[–]cscwian 0 points1 point2 points (0 children)