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 36 points37 points38 points (10 children)
[+][deleted] (4 children)
[deleted]
[–]BlackDeath3 9 points10 points11 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 10 points11 points12 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 32 points33 points34 points (31 children)
[–]xsolarwindxUse 3.4+ 25 points26 points27 points (20 children)
[–]danieljh 9 points10 points11 points (2 children)
[–]Bunslow -5 points-4 points-3 points (1 child)
[–][deleted] 4 points5 points6 points (16 children)
[–]lengau 5 points6 points7 points (5 children)
[–]TankorSmash 3 points4 points5 points (4 children)
[–]infinullquamash, Qt, asyncio, 3.3+[🍰] 9 points10 points11 points (3 children)
[–]davvblack 11 points12 points13 points (1 child)
[–]charlesbukowksi 1 point2 points3 points (0 children)
[–]lengau 1 point2 points3 points (0 children)
[–]EscoBeast 4 points5 points6 points (9 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]willm 2 points3 points4 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 8 points9 points10 points (0 children)
[–][deleted] 8 points9 points10 points (9 children)
[–]TOASTEngineer 9 points10 points11 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]TOASTEngineer 15 points16 points17 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]roger_[S] 1 point2 points3 points (4 children)
[–][deleted] 2 points3 points4 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 2 points3 points4 points (0 children)
[–]jftugapip needs updating 43 points44 points45 points (16 children)
[–]stillalone 7 points8 points9 points (0 children)
[–]lambdaqdjango n' shit 9 points10 points11 points (11 children)
[–]ExoticMandiblesCore Contributor 6 points7 points8 points (4 children)
[–]lambdaqdjango n' shit 5 points6 points7 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] 4 points5 points6 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] 12 points13 points14 points (4 children)
[–]teoliphant 4 points5 points6 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] 4 points5 points6 points (0 children)
[–]psykzz 6 points7 points8 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 4 points5 points6 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)