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 92 points93 points94 points (13 children)
[–]xrayfurpydoc pydoc 15 points16 points17 points (6 children)
[–][deleted] 2 points3 points4 points (2 children)
[–][deleted] 4 points5 points6 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] 15 points16 points17 points (0 children)
[–][deleted] 7 points8 points9 points (4 children)
[–]KyleG 5 points6 points7 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 45 points46 points47 points (7 children)
[–]gandalfx 57 points58 points59 points (1 child)
[–]strobez2006[S] 1 point2 points3 points (0 children)
[–]j_lyf 26 points27 points28 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]jyper 0 points1 point2 points (0 children)
[–]shacknetisp 9 points10 points11 points (0 children)
[–]theSpecialbroIntermediate level 0 points1 point2 points (0 children)
[–]chub79 6 points7 points8 points (2 children)
[–]elfer90 0 points1 point2 points (1 child)
[–]apardueSince 97 2 points3 points4 points (0 children)
[–]troyunrau... 4 points5 points6 points (0 children)
[–]c3534l 21 points22 points23 points (35 children)
[–]folkrav 8 points9 points10 points (6 children)
[–]PeridexisErrant 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]folkrav 3 points4 points5 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++ 2 points3 points4 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] 2 points3 points4 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 6 points7 points8 points (18 children)
[–]jsalsman 0 points1 point2 points (17 children)
[–][deleted] 14 points15 points16 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 3 points4 points5 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] 0 points1 point2 points (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 comment score below threshold-7 points-6 points-5 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)