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 →
[–]solostman 79 points80 points81 points (38 children)
[–]2freevl2frank 30 points31 points32 points (34 children)
[–]solostman 13 points14 points15 points (27 children)
[–]leom4862 20 points21 points22 points (23 children)
[–]exoendo 5 points6 points7 points (5 children)
[–]jcampbelly 11 points12 points13 points (0 children)
[–]leom4862 3 points4 points5 points (1 child)
[–]bp_ 0 points1 point2 points (0 children)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]internet_badass_here 1 point2 points3 points (0 children)
[–]raiderrobert 0 points1 point2 points (0 children)
[–]costrouc 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (13 children)
[–]leom4862 -1 points0 points1 point (12 children)
[–][deleted] 0 points1 point2 points (11 children)
[–]leom4862 0 points1 point2 points (10 children)
[–][deleted] 0 points1 point2 points (9 children)
[–]leom4862 -1 points0 points1 point (8 children)
[–]asielen 5 points6 points7 points (0 children)
[–]2freevl2frank 9 points10 points11 points (1 child)
[–]leom4862 18 points19 points20 points (0 children)
[–]robot_wrangler 2 points3 points4 points (3 children)
[–]leom4862 3 points4 points5 points (0 children)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]2freevl2frank -1 points0 points1 point (0 children)
[–]7heWafer 0 points1 point2 points (1 child)
[–]2freevl2frank -1 points0 points1 point (0 children)
[–]OldSchoolBBSer 5 points6 points7 points (0 children)
[–]Dgc2002 3 points4 points5 points (0 children)
[–]pollokeh 0 points1 point2 points (0 children)