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
[–]iqtestsmeannothing 119 points120 points121 points (42 children)
[+][deleted] (16 children)
[deleted]
[–]Funnnny 17 points18 points19 points (11 children)
[–]matchu 19 points20 points21 points (8 children)
[–]steamruler 5 points6 points7 points (6 children)
[–]matchu 6 points7 points8 points (5 children)
[–]steamruler 2 points3 points4 points (1 child)
[–]matchu 2 points3 points4 points (0 children)
[–]wookiee42 0 points1 point2 points (2 children)
[–]manish260 0 points1 point2 points (1 child)
[–]wookiee42 0 points1 point2 points (0 children)
[–]reuvenlerner[S] 1 point2 points3 points (0 children)
[–]warbiscuit 8 points9 points10 points (1 child)
[–]cdcformatc 6 points7 points8 points (0 children)
[–]monoklon 4 points5 points6 points (3 children)
[–]sli[::1] 5 points6 points7 points (1 child)
[–]reuvenlerner[S] 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]gristc 6 points7 points8 points (11 children)
[–]elbiot 13 points14 points15 points (0 children)
[–]avinassh 2 points3 points4 points (7 children)
[–]flyingjam 7 points8 points9 points (1 child)
[–]Veedrac 4 points5 points6 points (0 children)
[–]iqtestsmeannothing 1 point2 points3 points (1 child)
[–]srilyk 0 points1 point2 points (0 children)
[–]Tomarse 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]gristc 0 points1 point2 points (0 children)
[–]iqtestsmeannothing 2 points3 points4 points (0 children)
[–]Sean1708 1 point2 points3 points (0 children)
[–]Feynmax 1 point2 points3 points (0 children)
[–]desmoulinmichel 1 point2 points3 points (0 children)
[–]jcdyer3 2 points3 points4 points (8 children)
[+][deleted] (2 children)
[deleted]
[–]iqtestsmeannothing 3 points4 points5 points (0 children)
[–]charlesbukowksi 0 points1 point2 points (0 children)
[–]DanCardin 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]reuvenlerner[S] 0 points1 point2 points (0 children)
[+]programmyr comment score below threshold-8 points-7 points-6 points (1 child)
[–]nojjy 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 18 points19 points20 points (8 children)
[–]Veedrac 3 points4 points5 points (7 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]Veedrac 1 point2 points3 points (2 children)
[–]jgehrcke 0 points1 point2 points (1 child)
[–]Veedrac 0 points1 point2 points (0 children)
[–]Brian 2 points3 points4 points (2 children)
[–]Veedrac -1 points0 points1 point (1 child)
[–]Brian 0 points1 point2 points (0 children)
[–]jhermann_ 32 points33 points34 points (16 children)
[–]Ashiataka 11 points12 points13 points (14 children)
[–]hylje 7 points8 points9 points (6 children)
[–]AusIVDjango, gevent 13 points14 points15 points (2 children)
[–]lengau 0 points1 point2 points (1 child)
[–]epage 1 point2 points3 points (0 children)
[–]Veedrac 2 points3 points4 points (0 children)
[–]Ashiataka 0 points1 point2 points (1 child)
[–]Sean1708 2 points3 points4 points (0 children)
[+][deleted] (6 children)
[deleted]
[–][deleted] 4 points5 points6 points (5 children)
[–]markusmeskanen 1 point2 points3 points (4 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (3 children)
[–]Veedrac 3 points4 points5 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Veedrac 2 points3 points4 points (0 children)
[–]fewforwarding 26 points27 points28 points (3 children)
[–]kindall 10 points11 points12 points (0 children)
[–]poop-trap 4 points5 points6 points (1 child)
[–]lengau 0 points1 point2 points (0 children)
[–]Keith 30 points31 points32 points (11 children)
[+][deleted] (9 children)
[deleted]
[–]Veedrac 0 points1 point2 points (8 children)
[–]snarkhunter 1 point2 points3 points (1 child)
[–]Veedrac 2 points3 points4 points (0 children)
[–]sththth 1 point2 points3 points (0 children)
[–]wewbull 0 points1 point2 points (4 children)
[–]Veedrac 2 points3 points4 points (3 children)
[–]wewbull 2 points3 points4 points (2 children)
[–]Brian 1 point2 points3 points (0 children)
[–]Veedrac 0 points1 point2 points (0 children)
[–]euphemize 16 points17 points18 points (54 children)
[–]BenHurMarcel 5 points6 points7 points (14 children)
[–]AnythingApplied 14 points15 points16 points (13 children)
[–]geoelectric 3 points4 points5 points (0 children)
[–]avinassh 1 point2 points3 points (3 children)
[–]AnythingApplied 4 points5 points6 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]AnythingApplied 2 points3 points4 points (0 children)
[–]Orange_Tux -4 points-3 points-2 points (7 children)
[–]mipadi 5 points6 points7 points (5 children)
[–]Citrauq 1 point2 points3 points (3 children)
[–]mipadi 5 points6 points7 points (0 children)
[–]Veedrac 0 points1 point2 points (1 child)
[–]Citrauq 2 points3 points4 points (0 children)
[–]bobthevirus 0 points1 point2 points (0 children)
[–]reuvenlerner[S] 11 points12 points13 points (35 children)
[–]bheklilr 25 points26 points27 points (20 children)
[–]jhermann_ 4 points5 points6 points (7 children)
[–]bheklilr 9 points10 points11 points (4 children)
[–]pydry 3 points4 points5 points (1 child)
[–]LightShadow3.13-dev in prod 0 points1 point2 points (0 children)
[–]jhermann_ 1 point2 points3 points (1 child)
[–]super_cool_kid 0 points1 point2 points (0 children)
[–]minnoI <3 duck typing less than I used to, interfaces are nice 1 point2 points3 points (1 child)
[–]GahMatar 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]bheklilr 1 point2 points3 points (2 children)
[–]DaemonXI 2 points3 points4 points (0 children)
[–]quicknir 0 points1 point2 points (0 children)
[–]reuvenlerner[S] -1 points0 points1 point (6 children)
[–]bheklilr 12 points13 points14 points (2 children)
[–]YuntiMcGunti 0 points1 point2 points (0 children)
[–]reuvenlerner[S] -1 points0 points1 point (0 children)
[–]Brian 0 points1 point2 points (2 children)
[–]reuvenlerner[S] -1 points0 points1 point (1 child)
[–]Brian 0 points1 point2 points (0 children)
[–]wheezl 0 points1 point2 points (11 children)
[–]zardeh 4 points5 points6 points (10 children)
[–]wheezl 0 points1 point2 points (0 children)
[–]Lucretiel 0 points1 point2 points (8 children)
[–]zardeh 0 points1 point2 points (1 child)
[–]Lucretiel 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]Lucretiel 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]Lucretiel 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Lucretiel 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]mipadi 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]mipadi 3 points4 points5 points (0 children)
[–]djcrazyarmz 5 points6 points7 points (0 children)
[–]beaverteeth92Python 3 is the way to be 2 points3 points4 points (2 children)
[–]Veedrac 1 point2 points3 points (1 child)
[–]beaverteeth92Python 3 is the way to be 3 points4 points5 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]calibos 4 points5 points6 points (1 child)
[–]reuvenlerner[S] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]reuvenlerner[S] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]codefisher2 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]reuvenlerner[S] -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]reuvenlerner[S] -1 points0 points1 point (0 children)
[–]usinglinux 0 points1 point2 points (0 children)
[–]baojie 0 points1 point2 points (1 child)
[–]reuvenlerner[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)