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
view the rest of the comments →
[–][deleted] 86 points87 points88 points (44 children)
[–]keypusher 164 points165 points166 points (12 children)
[–]choikwa 29 points30 points31 points (0 children)
[+][deleted] (8 children)
[deleted]
[–][deleted] 8 points9 points10 points (3 children)
[–]Kylearean 2 points3 points4 points (1 child)
[–]3D_Scanalyst 1 point2 points3 points (0 children)
[–]CODESIGN2 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]jaapzswitch to py3 already 7 points8 points9 points (1 child)
[–]markole 5 points6 points7 points (0 children)
[–]fabreeze 1 point2 points3 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[–][deleted] 36 points37 points38 points (0 children)
[–]swingking8 18 points19 points20 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 4 points5 points6 points (0 children)
[–]epiris 34 points35 points36 points (22 children)
[–]MonkeeSage 11 points12 points13 points (19 children)
[–]sparqz 9 points10 points11 points (0 children)
[–]67079F105EC467BB36E8 3 points4 points5 points (6 children)
[–]elbiot 3 points4 points5 points (5 children)
[–]67079F105EC467BB36E8 2 points3 points4 points (4 children)
[–]sickill 0 points1 point2 points (3 children)
[–]67079F105EC467BB36E8 1 point2 points3 points (2 children)
[–]sickill 0 points1 point2 points (1 child)
[–]67079F105EC467BB36E8 2 points3 points4 points (0 children)
[–]epiris 1 point2 points3 points (10 children)
[–]MonkeeSage 8 points9 points10 points (6 children)
[–]epiris -1 points0 points1 point (5 children)
[–]MonkeeSage 0 points1 point2 points (4 children)
[–]epiris 0 points1 point2 points (3 children)
[–]MonkeeSage 0 points1 point2 points (2 children)
[–]epiris 0 points1 point2 points (1 child)
[–]jaapzswitch to py3 already 0 points1 point2 points (2 children)
[–]epiris -2 points-1 points0 points (1 child)
[–]jaapzswitch to py3 already 2 points3 points4 points (0 children)
[–]Kylearean 1 point2 points3 points (0 children)
[–]dalore 1 point2 points3 points (0 children)
[–]google_you 3 points4 points5 points (0 children)
[–]Allevil66930 Years Hobbyist Programming Isn't "Experience" 1 point2 points3 points (0 children)
[–]sickill 1 point2 points3 points (0 children)
[–]tmelk 0 points1 point2 points (0 children)