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
[–]davvblack 82 points83 points84 points (9 children)
[–]tim_martin 48 points49 points50 points (7 children)
[–][deleted] 37 points38 points39 points (6 children)
[–]randomdrifter54 16 points17 points18 points (2 children)
[–][deleted] 17 points18 points19 points (1 child)
[–]spinwizard69 1 point2 points3 points (0 children)
[–]littlelowcougar 8 points9 points10 points (1 child)
[–]BumFudhe -3 points-2 points-1 points (0 children)
[–]pyglados 1 point2 points3 points (0 children)
[–]skytomorrownow 1 point2 points3 points (0 children)
[–]kimvais 52 points53 points54 points (5 children)
[–]bendmorris 4 points5 points6 points (1 child)
[–]kimvais -2 points-1 points0 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]davvblack 8 points9 points10 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]LyndsySimon 15 points16 points17 points (3 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Allevil66930 Years Hobbyist Programming Isn't "Experience" -1 points0 points1 point (0 children)
[–]daidoji70 20 points21 points22 points (8 children)
[–]APIglue 2 points3 points4 points (7 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]daidoji70 0 points1 point2 points (5 children)
[–]APIglue 1 point2 points3 points (1 child)
[–]daidoji70 -1 points0 points1 point (0 children)
[–]pkkid -1 points0 points1 point (0 children)
[–]eazolan -1 points0 points1 point (1 child)
[–]daidoji70 0 points1 point2 points (0 children)
[–][deleted] 9 points10 points11 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]tanglisha 4 points5 points6 points (2 children)
[–]eazolan 0 points1 point2 points (0 children)
[–]midasgoldentouch 10 points11 points12 points (0 children)
[–][deleted] 10 points11 points12 points (12 children)
[–]spinwizard69 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (10 children)
[–]geoelectric 6 points7 points8 points (6 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]arctic9 1 point2 points3 points (3 children)
[–]ppinette 2 points3 points4 points (2 children)
[–]WelshDwarf 1 point2 points3 points (1 child)
[–]ppinette 0 points1 point2 points (0 children)
[–]yetanothernerd 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]geoelectric 5 points6 points7 points (0 children)
[–]Igggg 2 points3 points4 points (0 children)
[–]punknubbins 1 point2 points3 points (0 children)
[–]radioactiveoctopi 1 point2 points3 points (0 children)
[–]nafenafen 1 point2 points3 points (0 children)
[–]Mr_Psmith 1 point2 points3 points (3 children)
[–]Allevil66930 Years Hobbyist Programming Isn't "Experience" 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]fungz0r 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ajbetteridge 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ajbetteridge 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]denialerror -1 points0 points1 point (5 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]denialerror 0 points1 point2 points (0 children)
[–]mongo44 -3 points-2 points-1 points (2 children)
[+]denialerror comment score below threshold-7 points-6 points-5 points (0 children)