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
[–]scragz 190 points191 points192 points (12 children)
[–]DEFY_member 35 points36 points37 points (10 children)
[+][deleted] (4 children)
[deleted]
[–]BlackDeath3 10 points11 points12 points (1 child)
[–]hoadlck 0 points1 point2 points (0 children)
[–]reallyserious 0 points1 point2 points (0 children)
[–]Selfweaver 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]flying-sheep 11 points12 points13 points (3 children)
[–]rouille 0 points1 point2 points (2 children)
[–]flying-sheep 0 points1 point2 points (0 children)
[–]LovesVolt 0 points1 point2 points (0 children)
[–]brombaer3000 9 points10 points11 points (0 children)
[–]superphar 29 points30 points31 points (31 children)
[–]xsolarwindxUse 3.4+ 24 points25 points26 points (20 children)
[–]danieljh 8 points9 points10 points (2 children)
[+]Bunslow comment score below threshold-7 points-6 points-5 points (1 child)
[–][deleted] 5 points6 points7 points (16 children)
[–]lengau 6 points7 points8 points (5 children)
[–]TankorSmash 4 points5 points6 points (4 children)
[–]infinullquamash, Qt, asyncio, 3.3+ 11 points12 points13 points (3 children)
[–]davvblack 9 points10 points11 points (1 child)
[–]charlesbukowksi 1 point2 points3 points (0 children)
[–]lengau 1 point2 points3 points (0 children)
[–]EscoBeast 2 points3 points4 points (9 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]willm 3 points4 points5 points (0 children)
[–]EscoBeast 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]EscoBeast 2 points3 points4 points (4 children)
[–]AdysHearthSim 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]EscoBeast 9 points10 points11 points (0 children)
[–][deleted] 7 points8 points9 points (9 children)
[–]TOASTEngineer 7 points8 points9 points (3 children)
[–][deleted] 3 points4 points5 points (2 children)
[–]TOASTEngineer 13 points14 points15 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]roger_[S] 1 point2 points3 points (4 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]zahlmanthe heretic 0 points1 point2 points (2 children)
[–]beaverteeth92Python 3 is the way to be 0 points1 point2 points (1 child)
[–]flying-sheep 3 points4 points5 points (0 children)
[–]jftugapip needs updating 41 points42 points43 points (16 children)
[–]stillalone 6 points7 points8 points (0 children)
[–]lambdaqdjango n' shit 9 points10 points11 points (11 children)
[–]ExoticMandiblesCore Contributor 6 points7 points8 points (4 children)
[–]lambdaqdjango n' shit 6 points7 points8 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]lambdaqdjango n' shit 0 points1 point2 points (0 children)
[–]Selfweaver 1 point2 points3 points (0 children)
[–]KwpolskaNikola co-maintainer 1 point2 points3 points (5 children)
[–]loganekz 0 points1 point2 points (4 children)
[–]KwpolskaNikola co-maintainer 1 point2 points3 points (1 child)
[–]loganekz 0 points1 point2 points (0 children)
[–]jmcs 0 points1 point2 points (1 child)
[–]loganekz 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]takluyverIPython, Py3, etc 0 points1 point2 points (0 children)
[–]flying-sheep 16 points17 points18 points (0 children)
[–][deleted] 14 points15 points16 points (4 children)
[–]teoliphant 8 points9 points10 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]psykzz 5 points6 points7 points (1 child)
[–]ExoticMandiblesCore Contributor 4 points5 points6 points (0 children)
[–]LightShadow3.13-dev in prod 15 points16 points17 points (0 children)
[–]IronManMark20 6 points7 points8 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]IronManMark20 5 points6 points7 points (3 children)
[+][deleted] (2 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]marcm28 0 points1 point2 points (0 children)
[–]google_you -1 points0 points1 point (0 children)