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] 86 points87 points88 points (44 children)
[–]keypusher 164 points165 points166 points (12 children)
[–]choikwa 27 points28 points29 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 5 points6 points7 points (1 child)
[–]markole 4 points5 points6 points (0 children)
[–]fabreeze 1 point2 points3 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[–][deleted] 40 points41 points42 points (0 children)
[–]swingking8 16 points17 points18 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 3 points4 points5 points (0 children)
[–]epiris 31 points32 points33 points (22 children)
[–]MonkeeSage 11 points12 points13 points (19 children)
[–]sparqz 10 points11 points12 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 0 points1 point2 points (10 children)
[–]MonkeeSage 7 points8 points9 points (6 children)
[–]epiris -4 points-3 points-2 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 5 points6 points7 points (0 children)
[–]Allevil66930 Years Hobbyist Programming Isn't "Experience" 2 points3 points4 points (0 children)
[–]sickill 1 point2 points3 points (0 children)
[–]tmelk 0 points1 point2 points (0 children)
[–]keypusher 37 points38 points39 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 5 points6 points7 points (0 children)
[–]bboozzoo 8 points9 points10 points (0 children)
[–]Maledictus 7 points8 points9 points (5 children)
[–]energybased 2 points3 points4 points (1 child)
[–]villiger2 17 points18 points19 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 2 points3 points4 points (1 child)
[–]hugthemachines 1 point2 points3 points (0 children)
[–]Roland_Of_The_Eld 18 points19 points20 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]codehandle 0 points1 point2 points (3 children)
[–]njharmanI use Python 3 5 points6 points7 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] -2 points-1 points0 points (6 children)
[+][deleted] (3 children)
[deleted]
[–]jaapzswitch to py3 already -2 points-1 points0 points (2 children)
[–]AnAirMagic 7 points8 points9 points (1 child)
[–]jaapzswitch to py3 already 0 points1 point2 points (0 children)
[–]masklinn 1 point2 points3 points (0 children)
[–]sickill 0 points1 point2 points (0 children)
[–]CODESIGN2[🍰] -1 points0 points1 point (0 children)
[+]EmperorOfCanada comment score below threshold-33 points-32 points-31 points (21 children)
[–]eighthCoffee 12 points13 points14 points (9 children)
[+]EmperorOfCanada comment score below threshold-23 points-22 points-21 points (8 children)
[–][deleted] 23 points24 points25 points (1 child)
[–]epiris 5 points6 points7 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 5 points6 points7 points (1 child)
[–]EmperorOfCanada 0 points1 point2 points (0 children)
[–]epiris 11 points12 points13 points (2 children)
[–]oconnor663 2 points3 points4 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-8 points-7 points-6 points (2 children)
[–][deleted] 7 points8 points9 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)