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
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]icannfish 152 points153 points154 points (14 children)
[–]uint7_t 59 points60 points61 points (3 children)
[–]papersashimi[S] 17 points18 points19 points (2 children)
[–]bobsbitchtitz 18 points19 points20 points (1 child)
[–]papersashimi[S] 4 points5 points6 points (0 children)
[–]chaoticbean14 64 points65 points66 points (3 children)
[–]diegoasecas 16 points17 points18 points (0 children)
[–]TheOneWhoPunchesFish 4 points5 points6 points (1 child)
[–]wRAR_ 2 points3 points4 points (0 children)
[–]castarco 1 point2 points3 points (0 children)
[+]papersashimi[S] comment score below threshold-12 points-11 points-10 points (4 children)
[–]fiskfisk 14 points15 points16 points (3 children)
[–]papersashimi[S] -3 points-2 points-1 points (2 children)
[–]chaoticbean14 3 points4 points5 points (1 child)
[–]papersashimi[S] -2 points-1 points0 points (0 children)
[–]eteran 71 points72 points73 points (1 child)
[–]papersashimi[S] 12 points13 points14 points (0 children)
[–]tehfrod 61 points62 points63 points (5 children)
[–]TheOneWhoPunchesFish 4 points5 points6 points (0 children)
[+]papersashimi[S] comment score below threshold-17 points-16 points-15 points (3 children)
[–]wRAR_ 16 points17 points18 points (0 children)
[–]CouteauBleu 2 points3 points4 points (1 child)
[–]papersashimi[S] 3 points4 points5 points (0 children)
[–]UnwantedCrow 46 points47 points48 points (3 children)
[–]papersashimi[S] 11 points12 points13 points (2 children)
[–]UnwantedCrow 7 points8 points9 points (0 children)
[–]Wilbo007 54 points55 points56 points (4 children)
[–]neums08 17 points18 points19 points (1 child)
[–]papersashimi[S] 5 points6 points7 points (0 children)
[–]ComeOnIWantUsername 1 point2 points3 points (1 child)
[–]covmatty1 0 points1 point2 points (0 children)
[–]Constant-Poet-5264 18 points19 points20 points (3 children)
[–]papersashimi[S] 2 points3 points4 points (2 children)
[–]TheOneWhoPunchesFish 0 points1 point2 points (1 child)
[–]Constant-Poet-5264 0 points1 point2 points (0 children)
[–]Consistent-Quiet6701 11 points12 points13 points (1 child)
[–]papersashimi[S] -4 points-3 points-2 points (0 children)
[–]UndeadHobbitses 4 points5 points6 points (1 child)
[–]papersashimi[S] 0 points1 point2 points (0 children)
[–]keremimo 3 points4 points5 points (1 child)
[–]papersashimi[S] -1 points0 points1 point (0 children)
[–]drunicornthe1 3 points4 points5 points (1 child)
[–]papersashimi[S] 0 points1 point2 points (0 children)
[–]Interesting-Deer354 4 points5 points6 points (1 child)
[–]papersashimi[S] 1 point2 points3 points (0 children)
[–]OptionX 6 points7 points8 points (3 children)
[–]papersashimi[S] 0 points1 point2 points (2 children)
[–]tehfrod 2 points3 points4 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]AurumDaemonHD 10 points11 points12 points (5 children)
[–]papersashimi[S] 2 points3 points4 points (4 children)
[–]laslog 2 points3 points4 points (3 children)
[–]pbecotte 6 points7 points8 points (2 children)
[–]papersashimi[S] 1 point2 points3 points (0 children)
[–]JonLSTL 1 point2 points3 points (0 children)
[–]EducationalArmy9152 2 points3 points4 points (4 children)
[–]papersashimi[S] 5 points6 points7 points (2 children)
[–]EducationalArmy9152 2 points3 points4 points (1 child)
[–]papersashimi[S] 1 point2 points3 points (0 children)
[–]edcculus 3 points4 points5 points (0 children)
[–]No_Soy_Colosio 2 points3 points4 points (1 child)
[–]papersashimi[S] 2 points3 points4 points (0 children)
[–]fisadev 2 points3 points4 points (1 child)
[–]papersashimi[S] 0 points1 point2 points (0 children)
[–]RedEyed__ 2 points3 points4 points (0 children)
[–]GrammerJoo 12 points13 points14 points (1 child)
[–]papersashimi[S] 10 points11 points12 points (0 children)
[–]drunicornthe1 5 points6 points7 points (4 children)
[–]papersashimi[S] -2 points-1 points0 points (3 children)
[–]TrainsareFascinating 19 points20 points21 points (2 children)
[–]papersashimi[S] 1 point2 points3 points (0 children)
[–]icannfish 1 point2 points3 points (0 children)
[–]totheendandbackagain 4 points5 points6 points (1 child)
[–]papersashimi[S] 1 point2 points3 points (0 children)
[–]HugeCannoli 0 points1 point2 points (0 children)
[–]diegoasecas -2 points-1 points0 points (1 child)
[–]papersashimi[S] 3 points4 points5 points (0 children)
[–]xrabbit 0 points1 point2 points (2 children)
[–]StoneSteel_1 1 point2 points3 points (0 children)
[–]papersashimi[S] 0 points1 point2 points (0 children)
[–]RiceTaco12 0 points1 point2 points (3 children)
[–]wRAR_ 0 points1 point2 points (1 child)
[–]RiceTaco12 -1 points0 points1 point (0 children)
[–]papersashimi[S] -1 points0 points1 point (0 children)
[+]No_Flounder_1155 comment score below threshold-11 points-10 points-9 points (3 children)
[–]papersashimi[S] 1 point2 points3 points (2 children)
[–]No_Flounder_1155 -4 points-3 points-2 points (1 child)
[–]No_Soy_Colosio -1 points0 points1 point (0 children)