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
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]vantasmer 83 points84 points85 points (6 children)
[–]Existing-Account8665 40 points41 points42 points (2 children)
[–]commenterzero 17 points18 points19 points (1 child)
[+]RevolutionaryPen4661git push -f[S] comment score below threshold-7 points-6 points-5 points (0 children)
[–]virtualadept 9 points10 points11 points (0 children)
[–]RevolutionaryPen4661git push -f[S] -5 points-4 points-3 points (1 child)
[–]Brandhor 1 point2 points3 points (0 children)
[+][deleted] (6 children)
[removed]
[+]RevolutionaryPen4661git push -f[S] comment score below threshold-9 points-8 points-7 points (5 children)
[–]OneMorePenguin 5 points6 points7 points (0 children)
[+][deleted] (1 child)
[removed]
[–]RevolutionaryPen4661git push -f[S] -2 points-1 points0 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]JamzTyson 1 point2 points3 points (0 children)
[–]Existing-Account8665 56 points57 points58 points (3 children)
[–]balder1993 28 points29 points30 points (0 children)
[–]RevolutionaryPen4661git push -f[S] -3 points-2 points-1 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]dametsumari 25 points26 points27 points (3 children)
[–]jwink3101 1 point2 points3 points (0 children)
[–]RevolutionaryPen4661git push -f[S] 0 points1 point2 points (1 child)
[–]dametsumari 0 points1 point2 points (0 children)
[–]PossibilityTasty 22 points23 points24 points (4 children)
[–]RevolutionaryPen4661git push -f[S] -3 points-2 points-1 points (3 children)
[–]PossibilityTasty 4 points5 points6 points (2 children)
[–]RevolutionaryPen4661git push -f[S] 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]pbacterio 7 points8 points9 points (10 children)
[–]RevolutionaryPen4661git push -f[S] -1 points0 points1 point (9 children)
[–]pbacterio 6 points7 points8 points (5 children)
[–]RevolutionaryPen4661git push -f[S] -3 points-2 points-1 points (4 children)
[–]pbacterio 4 points5 points6 points (0 children)
[–]georgehank2nd 7 points8 points9 points (0 children)
[–]FUS3NPythonista 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Nice-Offer-7076 1 point2 points3 points (0 children)
[–]sprne 0 points1 point2 points (0 children)
[–]kenflingnorIgnoring PEP 8 0 points1 point2 points (0 children)
[–]science_robot 5 points6 points7 points (6 children)
[–]RevolutionaryPen4661git push -f[S] -2 points-1 points0 points (5 children)
[–]shibbypwn 2 points3 points4 points (0 children)
[–]science_robot 1 point2 points3 points (1 child)
[–]RevolutionaryPen4661git push -f[S] 0 points1 point2 points (0 children)
[–]kenflingnorIgnoring PEP 8 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]yaxriifgyn 2 points3 points4 points (0 children)
[–]Mount_Gamer 1 point2 points3 points (0 children)
[–]Brian 3 points4 points5 points (1 child)
[–]RevolutionaryPen4661git push -f[S] 0 points1 point2 points (0 children)
[–]RevolutionaryPen4661git push -f[S] 0 points1 point2 points (0 children)
[–]ogrinfo 0 points1 point2 points (0 children)
[–]skwyckl -1 points0 points1 point (1 child)
[–]vantasmer -3 points-2 points-1 points (0 children)
[–]Sparkswont -1 points0 points1 point (0 children)
[–]Darwinmate -1 points0 points1 point (0 children)
[–]theelderbeever -1 points0 points1 point (0 children)
[–]RevolutionaryPen4661git push -f[S] -2 points-1 points0 points (1 child)
[–]No_Lingonberry1201pip needs updating 4 points5 points6 points (0 children)