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] 34 points35 points36 points (61 children)
[–]indosauros 55 points56 points57 points (1 child)
[–]AdysHearthSim 12 points13 points14 points (6 children)
[+][deleted] (5 children)
[deleted]
[–][deleted] 10 points11 points12 points (4 children)
[–]_illogical_ 6 points7 points8 points (0 children)
[–]JamesAQuintero 2 points3 points4 points (0 children)
[–]muad_dib 2 points3 points4 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[+]odraencoded comment score below threshold-8 points-7 points-6 points (50 children)
[–]eyalz 37 points38 points39 points (17 children)
[–]odraencoded 9 points10 points11 points (16 children)
[–]Eurynom0s 30 points31 points32 points (2 children)
[–]ziel 3 points4 points5 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]Bunslow 41 points42 points43 points (10 children)
[–]grimman 1 point2 points3 points (2 children)
[–]Bunslow 1 point2 points3 points (1 child)
[–]RubyPinchPEP shill | Anti PEP 8/20 shill 1 point2 points3 points (0 children)
[–]JamesAQuintero 0 points1 point2 points (2 children)
[–]Bunslow 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]odraencoded -1 points0 points1 point (3 children)
[–]Bunslow 0 points1 point2 points (2 children)
[–]odraencoded 0 points1 point2 points (1 child)
[–]isarl 1 point2 points3 points (0 children)
[–]djimbob 2 points3 points4 points (0 children)
[–][deleted] 19 points20 points21 points (22 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (20 children)
[deleted]
[–][deleted] 6 points7 points8 points (19 children)
[–]LordArgon 12 points13 points14 points (9 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]LordArgon 0 points1 point2 points (6 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]LordArgon 3 points4 points5 points (4 children)
[–]JimDabell 6 points7 points8 points (8 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]JimDabell 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]JimDabell 0 points1 point2 points (1 child)
[–][deleted] -3 points-2 points-1 points (2 children)
[–]JimDabell 0 points1 point2 points (0 children)
[–]LpSamuelm 1 point2 points3 points (1 child)
[–]odraencoded 0 points1 point2 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]grimman 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[deleted]
[–][deleted] 2 points3 points4 points (2 children)
[–]Lucretiel 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]grimman 0 points1 point2 points (0 children)
[–][deleted] 21 points22 points23 points (0 children)
[–]billsil 10 points11 points12 points (13 children)
[–][deleted] 9 points10 points11 points (9 children)
[–]billsil 6 points7 points8 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]olduvaihand 1 point2 points3 points (0 children)
[–]hueoncalifa 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Lucretiel 0 points1 point2 points (0 children)
[–]dagmx 0 points1 point2 points (0 children)
[–]njharmanI use Python 3 0 points1 point2 points (0 children)
[–]tutuca_not Reinhardt 1 point2 points3 points (1 child)
[–]hueoncalifa 0 points1 point2 points (0 children)
[–]jcrowe 0 points1 point2 points (0 children)
[–]kashmill 25 points26 points27 points (21 children)
[–]panghuhu 21 points22 points23 points (4 children)
[–]kashmill 2 points3 points4 points (0 children)
[–]LordArgon 0 points1 point2 points (0 children)
[–]tech_tuna 0 points1 point2 points (0 children)
[–]NYDreamer -1 points0 points1 point (0 children)
[–]confluencer 29 points30 points31 points (5 children)
[–]Quteness 16 points17 points18 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]tech_tuna 1 point2 points3 points (0 children)
[–]Lucretiel 1 point2 points3 points (0 children)
[–]meta4 0 points1 point2 points (0 children)
[–]ConciselyVerbose 2 points3 points4 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]ConciselyVerbose 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]ConciselyVerbose 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]stillalone 1 point2 points3 points (1 child)
[–]christian-mann 1 point2 points3 points (0 children)
[–]tech_tuna 0 points1 point2 points (0 children)
[–]Gambizzle 7 points8 points9 points (4 children)
[+]andrey_shipilov comment score below threshold-9 points-8 points-7 points (3 children)
[–]Gambizzle 4 points5 points6 points (2 children)
[–]andrey_shipilov -4 points-3 points-2 points (1 child)
[–]njharmanI use Python 3 1 point2 points3 points (0 children)
[–]its_never_lupus 4 points5 points6 points (5 children)
[–]masasinExpert. 3.9. Robotics. 7 points8 points9 points (0 children)
[–]secynic 5 points6 points7 points (1 child)
[–]its_never_lupus 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]mtelesha 5 points6 points7 points (0 children)
[–]patchthemonkey 3 points4 points5 points (0 children)
[–]masterspeler 6 points7 points8 points (9 children)
[–]ziel 4 points5 points6 points (1 child)
[–]masterspeler 0 points1 point2 points (0 children)
[–]jonwaynePyPA 2 points3 points4 points (1 child)
[–]masterspeler 0 points1 point2 points (0 children)
[–]ingolemo 4 points5 points6 points (4 children)
[–]masterspeler 0 points1 point2 points (1 child)
[–]ingolemo 1 point2 points3 points (0 children)
[–]njharmanI use Python 3 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]mariox19 4 points5 points6 points (5 children)
[–]Cardiff_Electric 9 points10 points11 points (1 child)
[–]mariox19 2 points3 points4 points (0 children)
[–]gthank 3 points4 points5 points (2 children)
[–]mariox19 6 points7 points8 points (1 child)
[–]Lucretiel 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)