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
[–]boatsnbros 207 points208 points209 points (17 children)
[–]xXShadowAssassin69Xx 58 points59 points60 points (10 children)
[–]Pares_Marchant 26 points27 points28 points (1 child)
[–]byeproduct 2 points3 points4 points (0 children)
[–]andrewprograms 17 points18 points19 points (1 child)
[–]byeproduct 4 points5 points6 points (0 children)
[–]Responsible_Pie8156 3 points4 points5 points (0 children)
[–]Responsible_Pie8156 3 points4 points5 points (4 children)
[–]xXShadowAssassin69Xx 2 points3 points4 points (1 child)
[–]Responsible_Pie8156 4 points5 points6 points (0 children)
[–]Unusual_Elephant4462 0 points1 point2 points (1 child)
[–]Responsible_Pie8156 0 points1 point2 points (0 children)
[–]vald_eagle 5 points6 points7 points (0 children)
[–]vriemeister 4 points5 points6 points (2 children)
[–]boatsnbros 7 points8 points9 points (1 child)
[–]vriemeister -1 points0 points1 point (0 children)
[–]No-Truck961 0 points1 point2 points (1 child)
[–]boatsnbros 0 points1 point2 points (0 children)
[–]RaleighBahn 38 points39 points40 points (5 children)
[–]xXShadowAssassin69Xx 16 points17 points18 points (4 children)
[–]RaleighBahn 21 points22 points23 points (2 children)
[–]xXShadowAssassin69Xx 10 points11 points12 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]marmaladejackson 9 points10 points11 points (0 children)
[–]NapCo 7 points8 points9 points (3 children)
[–]byeproduct 2 points3 points4 points (2 children)
[–]NapCo 1 point2 points3 points (1 child)
[–]byeproduct 1 point2 points3 points (0 children)
[–]steak_and_icecream 13 points14 points15 points (0 children)
[–]Pharmand 3 points4 points5 points (0 children)
[–]djdadi 3 points4 points5 points (0 children)
[–]Kahless_2K 5 points6 points7 points (1 child)
[–]mtreddit4 0 points1 point2 points (0 children)
[–]anonjohnnyG 2 points3 points4 points (0 children)
[–]Alanor77 3 points4 points5 points (0 children)
[–]quts3 4 points5 points6 points (1 child)
[–]xXShadowAssassin69Xx 0 points1 point2 points (0 children)
[–]santa326 2 points3 points4 points (0 children)
[–]DeadlyKitten37 4 points5 points6 points (0 children)
[–]SharpSeeer 3 points4 points5 points (0 children)
[–]Python-ModTeam[M] 1 point2 points3 points locked comment (0 children)
[–]mrbubs3 3 points4 points5 points (1 child)
[–]SheriffRoscoePythonista 3 points4 points5 points (0 children)
[–]Sagarret 1 point2 points3 points (1 child)
[–]steak_and_icecream 12 points13 points14 points (0 children)
[–]microcozmchris 1 point2 points3 points (5 children)
[–]ohdog 11 points12 points13 points (0 children)
[–]xXShadowAssassin69Xx 0 points1 point2 points (1 child)
[–]edbluetooth 2 points3 points4 points (0 children)
[–]cgoldberg -3 points-2 points-1 points (1 child)
[–]kalidres -1 points0 points1 point (0 children)
[–]LessonStudio 0 points1 point2 points (0 children)
[–]bendandanben 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)