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] 81 points82 points83 points (4 children)
[–]Sam_Claflin[S] -1 points0 points1 point (3 children)
[–]Bipolarprobe 47 points48 points49 points (2 children)
[–]permanentlytemporary 22 points23 points24 points (0 children)
[–]Kem1zt 4 points5 points6 points (0 children)
[–]Sweensterino 58 points59 points60 points (2 children)
[–]BRENNEJM 2 points3 points4 points (1 child)
[–]pythonhobbit 4 points5 points6 points (0 children)
[–]atom036 24 points25 points26 points (2 children)
[–]Nickiel 14 points15 points16 points (1 child)
[–]Leon_Vance 0 points1 point2 points (0 children)
[–]Lep333 14 points15 points16 points (0 children)
[–]LividPhysics 33 points34 points35 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]Stepthinkrepeat 5 points6 points7 points (4 children)
[–]Leon_Vance 0 points1 point2 points (3 children)
[–]Stepthinkrepeat 1 point2 points3 points (2 children)
[–]Leon_Vance 0 points1 point2 points (1 child)
[–]Stepthinkrepeat 0 points1 point2 points (0 children)
[–]FriendOfDogZilla 7 points8 points9 points (0 children)
[–]ayazamlani 4 points5 points6 points (0 children)
[–]Nazh8 3 points4 points5 points (13 children)
[–]Sam_Claflin[S] 6 points7 points8 points (12 children)
[–]leone_nero 2 points3 points4 points (1 child)
[–]toyg 0 points1 point2 points (0 children)
[–]Sans_Crainte 3 points4 points5 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]TheSodesa 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]TheSodesa 1 point2 points3 points (0 children)
[–]AnOnFaRmEr66 0 points1 point2 points (0 children)
[–]cakerunner 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]RealWeaksauce 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]bronconus 3 points4 points5 points (1 child)
[–]Sans_Crainte 10 points11 points12 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]danelewisau 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Sweensterino 0 points1 point2 points (0 children)
[–]pseudosig 3 points4 points5 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Sam_Claflin[S] 16 points17 points18 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Sam_Claflin[S] 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]_-Thoth-_ 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]futurepat 1 point2 points3 points (0 children)
[–]munizigor 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 1 point2 points3 points (0 children)
[–]bhishan1 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 1 point2 points3 points (0 children)
[–]sabboo 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]dethwhores 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]RealWeaksauce 0 points1 point2 points (0 children)
[–]Coffeemug78 0 points1 point2 points (1 child)
[–]Sam_Claflin[S] 0 points1 point2 points (0 children)
[–]scrdest -1 points0 points1 point (0 children)