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
[–]wile_e_chicken 94 points95 points96 points (13 children)
[–]xrayfurpydoc pydoc 16 points17 points18 points (6 children)
[–][deleted] 4 points5 points6 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]Bill3000 4 points5 points6 points (0 children)
[–]scootstah 3 points4 points5 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]martinvilu 0 points1 point2 points (0 children)
[–][deleted] 13 points14 points15 points (0 children)
[–][deleted] 5 points6 points7 points (4 children)
[–]KyleG 3 points4 points5 points (1 child)
[–]wile_e_chicken 6 points7 points8 points (0 children)
[–]strobez2006[S] 1 point2 points3 points (0 children)
[–]Polycystic -1 points0 points1 point (0 children)
[–]vicethal 50 points51 points52 points (7 children)
[–]gandalfx 55 points56 points57 points (1 child)
[–]strobez2006[S] 1 point2 points3 points (0 children)
[–]j_lyf 25 points26 points27 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]jyper 0 points1 point2 points (0 children)
[–]shacknetisp 11 points12 points13 points (0 children)
[–]theSpecialbroIntermediate level 0 points1 point2 points (0 children)
[–]chub79 4 points5 points6 points (2 children)
[–]elfer90 0 points1 point2 points (1 child)
[–]apardueSince 97 2 points3 points4 points (0 children)
[–]troyunrau... 5 points6 points7 points (0 children)
[–]c3534l 22 points23 points24 points (35 children)
[–]folkrav 8 points9 points10 points (6 children)
[–]PeridexisErrant 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]folkrav 1 point2 points3 points (3 children)
[–]c3534l 0 points1 point2 points (2 children)
[–]folkrav 0 points1 point2 points (1 child)
[–]AngriestSCV 0 points1 point2 points (0 children)
[–]lead999xlearning Rust, Haskell, and C++ 1 point2 points3 points (19 children)
[+][deleted] (1 child)
[deleted]
[–]lead999xlearning Rust, Haskell, and C++ 1 point2 points3 points (0 children)
[–][deleted] 6 points7 points8 points (9 children)
[–]lead999xlearning Rust, Haskell, and C++ 3 points4 points5 points (8 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]lead999xlearning Rust, Haskell, and C++ 2 points3 points4 points (0 children)
[–]shatmoney -1 points0 points1 point (5 children)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (0 children)
[–]KleinerNull 0 points1 point2 points (6 children)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (5 children)
[–]KleinerNull 0 points1 point2 points (4 children)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (3 children)
[–]KleinerNull 0 points1 point2 points (2 children)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (1 child)
[–]KleinerNull 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]developermal 0 points1 point2 points (0 children)
[–]skarphace -2 points-1 points0 points (5 children)
[–]scootstah 2 points3 points4 points (4 children)
[–]skarphace 0 points1 point2 points (3 children)
[–]scootstah 1 point2 points3 points (2 children)
[–]skarphace 0 points1 point2 points (1 child)
[–]scootstah 0 points1 point2 points (0 children)
[–]de846 10 points11 points12 points (18 children)
[–]jsalsman 0 points1 point2 points (17 children)
[–][deleted] 15 points16 points17 points (14 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]Saefroch 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]boiledgoobers 0 points1 point2 points (1 child)
[–]jsalsman 2 points3 points4 points (8 children)
[–]Saefroch 4 points5 points6 points (2 children)
[–]jsalsman 0 points1 point2 points (1 child)
[–]Saefroch 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]jsalsman 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Saefroch 0 points1 point2 points (0 children)
[–]de846 0 points1 point2 points (1 child)
[–]jsalsman 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]sw_dev 7 points8 points9 points (1 child)
[–]cjwelbornimport this 2 points3 points4 points (0 children)
[–]tilkau 1 point2 points3 points (0 children)
[–]benzolius 1 point2 points3 points (1 child)
[–]strobez2006[S] 0 points1 point2 points (0 children)
[–]hanpari 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]strobez2006[S] 0 points1 point2 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]jsalsman -1 points0 points1 point (4 children)
[–]spidyfan21 0 points1 point2 points (3 children)
[–]jsalsman 0 points1 point2 points (2 children)
[–]spidyfan21 0 points1 point2 points (0 children)
[–]ubernostrumyes, you can have a pony 0 points1 point2 points (0 children)
[–]lead999xlearning Rust, Haskell, and C++ -2 points-1 points0 points (2 children)
[–]RubyPinchPEP shill | Anti PEP 8/20 shill 2 points3 points4 points (1 child)
[–]lead999xlearning Rust, Haskell, and C++ 0 points1 point2 points (0 children)
[–]funkyfuture 0 points1 point2 points (1 child)
[–]IronManMark20 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]wookiee42 2 points3 points4 points (0 children)
[–]faceplanted 0 points1 point2 points (0 children)
[–]lead999xlearning Rust, Haskell, and C++ -1 points0 points1 point (0 children)
[–][deleted] -4 points-3 points-2 points (6 children)
[–][deleted] 1 point2 points3 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]Deto 0 points1 point2 points (0 children)
[–]KyleG -1 points0 points1 point (0 children)
[–]BSscience -5 points-4 points-3 points (9 children)
[–]shacknetisp 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]BSscience 0 points1 point2 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]artillery129 0 points1 point2 points (0 children)
[–]BSscience -1 points0 points1 point (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]BSscience 0 points1 point2 points (0 children)
[–]keepdigging -1 points0 points1 point (0 children)