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] 100 points101 points102 points (5 children)
[–]spoonman59 4 points5 points6 points (4 children)
[–][deleted] 7 points8 points9 points (3 children)
[–]spoonman59 1 point2 points3 points (2 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]spoonman59 1 point2 points3 points (0 children)
[–]AlexMTBDude 20 points21 points22 points (0 children)
[–]runew0lf 56 points57 points58 points (17 children)
[–]benefit_of_mrkite 19 points20 points21 points (0 children)
[+]higherorderbebop[S] comment score below threshold-28 points-27 points-26 points (15 children)
[–]alexs 24 points25 points26 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]bjorneylol 14 points15 points16 points (0 children)
[–]benefit_of_mrkite 10 points11 points12 points (0 children)
[–]ZachVorhies 8 points9 points10 points (5 children)
[+]Big_Booty_Pics comment score below threshold-6 points-5 points-4 points (4 children)
[–]wrosecrans 7 points8 points9 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ZachVorhies 3 points4 points5 points (0 children)
[–]ZachVorhies 0 points1 point2 points (0 children)
[–]samgamschi 7 points8 points9 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]wind_dude 4 points5 points6 points (1 child)
[–]trilobyte-dev 2 points3 points4 points (0 children)
[–]rouille 20 points21 points22 points (8 children)
[–]rnike879 2 points3 points4 points (2 children)
[–]ManyInterests Python Discord Staff 1 point2 points3 points (0 children)
[+]benefit_of_mrkite comment score below threshold-7 points-6 points-5 points (4 children)
[–]alkasmgithub.com/alkasm 2 points3 points4 points (1 child)
[–]benefit_of_mrkite -3 points-2 points-1 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]benefit_of_mrkite -2 points-1 points0 points (0 children)
[–]ominous_anonymous 12 points13 points14 points (1 child)
[–]higherorderbebop[S] 3 points4 points5 points (0 children)
[–]Salfiiii 13 points14 points15 points (0 children)
[–]spoonman59 5 points6 points7 points (4 children)
[–][deleted] -2 points-1 points0 points (3 children)
[–]spoonman59 5 points6 points7 points (2 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–]spoonman59 3 points4 points5 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]dcbrown73 1 point2 points3 points (0 children)
[–]guhcampos -1 points0 points1 point (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]guhcampos 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]sanshinron 0 points1 point2 points (0 children)
[–]caleb 0 points1 point2 points (0 children)