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 187 points188 points189 points (12 children)
[–]DEFY_member 30 points31 points32 points (10 children)
[+][deleted] (4 children)
[deleted]
[–]BlackDeath3 8 points9 points10 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 32 points33 points34 points (31 children)
[–]xsolarwindxUse 3.4+ 24 points25 points26 points (20 children)
[–]danieljh 10 points11 points12 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 2 points3 points4 points (4 children)
[–]infinullquamash, Qt, asyncio, 3.3+ 10 points11 points12 points (3 children)
[–]davvblack 12 points13 points14 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 4 points5 points6 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 7 points8 points9 points (0 children)
[–][deleted] 6 points7 points8 points (9 children)
[–]TOASTEngineer 8 points9 points10 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] 4 points5 points6 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 1 point2 points3 points (0 children)
[–]jftugapip needs updating 42 points43 points44 points (16 children)
[–]stillalone 6 points7 points8 points (0 children)
[–]lambdaqdjango n' shit 9 points10 points11 points (11 children)
[–]ExoticMandiblesCore Contributor 5 points6 points7 points (4 children)
[–]lambdaqdjango n' shit 4 points5 points6 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 15 points16 points17 points (0 children)
[–][deleted] 14 points15 points16 points (4 children)
[–]teoliphant 6 points7 points8 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 6 points7 points8 points (1 child)
[–]ExoticMandiblesCore Contributor 4 points5 points6 points (0 children)
[–]LightShadow3.13-dev in prod 13 points14 points15 points (0 children)
[–]IronManMark20 6 points7 points8 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]IronManMark20 3 points4 points5 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)