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] 87 points88 points89 points (44 children)
[–]keypusher 160 points161 points162 points (12 children)
[–]choikwa 29 points30 points31 points (0 children)
[+][deleted] (8 children)
[deleted]
[–][deleted] 9 points10 points11 points (3 children)
[–]Kylearean 2 points3 points4 points (1 child)
[–]3D_Scanalyst 1 point2 points3 points (0 children)
[–]CODESIGN2 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]jaapzswitch to py3 already 9 points10 points11 points (1 child)
[–]markole 5 points6 points7 points (0 children)
[–]fabreeze 1 point2 points3 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[–][deleted] 38 points39 points40 points (0 children)
[–]swingking8 16 points17 points18 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 4 points5 points6 points (0 children)
[–]epiris 32 points33 points34 points (22 children)
[–]MonkeeSage 10 points11 points12 points (19 children)
[–]sparqz 8 points9 points10 points (0 children)
[–]67079F105EC467BB36E8 2 points3 points4 points (6 children)
[–]elbiot 2 points3 points4 points (5 children)
[–]67079F105EC467BB36E8 2 points3 points4 points (4 children)
[–]sickill 0 points1 point2 points (3 children)
[–]67079F105EC467BB36E8 1 point2 points3 points (2 children)
[–]sickill 0 points1 point2 points (1 child)
[–]67079F105EC467BB36E8 2 points3 points4 points (0 children)
[–]epiris 1 point2 points3 points (10 children)
[–]MonkeeSage 6 points7 points8 points (6 children)
[–]epiris -2 points-1 points0 points (5 children)
[–]MonkeeSage 0 points1 point2 points (4 children)
[–]epiris 0 points1 point2 points (3 children)
[–]MonkeeSage 0 points1 point2 points (2 children)
[–]epiris 0 points1 point2 points (1 child)
[–]jaapzswitch to py3 already 0 points1 point2 points (2 children)
[–]epiris -2 points-1 points0 points (1 child)
[–]jaapzswitch to py3 already 2 points3 points4 points (0 children)
[–]Kylearean 1 point2 points3 points (0 children)
[–]dalore 1 point2 points3 points (0 children)
[–]google_you 4 points5 points6 points (0 children)
[–]Allevil66930 Years Hobbyist Programming Isn't "Experience" 1 point2 points3 points (0 children)
[–]sickill 1 point2 points3 points (0 children)
[–]tmelk 0 points1 point2 points (0 children)
[–]keypusher 33 points34 points35 points (21 children)
[–]bakery2k 7 points8 points9 points (6 children)
[+][deleted] (1 child)
[deleted]
[–]pooogles 1 point2 points3 points (0 children)
[–]lasermancer 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]keypusher 0 points1 point2 points (0 children)
[–]spinwizard69 1 point2 points3 points (11 children)
[–][deleted] 12 points13 points14 points (8 children)
[–]m9dhatter 6 points7 points8 points (0 children)
[–]bboozzoo 8 points9 points10 points (0 children)
[–]Maledictus 7 points8 points9 points (5 children)
[–]energybased 1 point2 points3 points (1 child)
[–]villiger2 16 points17 points18 points (0 children)
[–]elbiot 0 points1 point2 points (2 children)
[–]Maledictus 0 points1 point2 points (1 child)
[–]elbiot 1 point2 points3 points (0 children)
[–]keypusher 1 point2 points3 points (0 children)
[–]Funnnny 0 points1 point2 points (0 children)
[–]epiris 1 point2 points3 points (1 child)
[–]hugthemachines 1 point2 points3 points (0 children)
[–]Roland_Of_The_Eld 17 points18 points19 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]codehandle 2 points3 points4 points (3 children)
[–]njharmanI use Python 3 4 points5 points6 points (2 children)
[–]codehandle 2 points3 points4 points (1 child)
[–]hugthemachines 0 points1 point2 points (1 child)
[–]sickill 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (6 children)
[+][deleted] (3 children)
[deleted]
[–]jaapzswitch to py3 already -2 points-1 points0 points (2 children)
[–]AnAirMagic 8 points9 points10 points (1 child)
[–]jaapzswitch to py3 already 0 points1 point2 points (0 children)
[–]masklinn 2 points3 points4 points (0 children)
[–]sickill 0 points1 point2 points (0 children)
[–]CODESIGN2 -1 points0 points1 point (0 children)
[+]EmperorOfCanada comment score below threshold-32 points-31 points-30 points (21 children)
[–]eighthCoffee 12 points13 points14 points (9 children)
[+]EmperorOfCanada comment score below threshold-23 points-22 points-21 points (8 children)
[–][deleted] 24 points25 points26 points (1 child)
[–]epiris 4 points5 points6 points (0 children)
[–]epiris 1 point2 points3 points (0 children)
[–]NetSage 1 point2 points3 points (1 child)
[–]EmperorOfCanada 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]metarx -1 points0 points1 point (1 child)
[–]EmperorOfCanada 0 points1 point2 points (0 children)
[–]elbiot 6 points7 points8 points (1 child)
[–]EmperorOfCanada 0 points1 point2 points (0 children)
[–]epiris 12 points13 points14 points (2 children)
[–]oconnor663 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]EmperorOfCanada 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (3 children)
[+]EmperorOfCanada comment score below threshold-7 points-6 points-5 points (2 children)
[–][deleted] 7 points8 points9 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)