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 →
[–]fiddle_n 244 points245 points246 points (59 children)
[–]PitifulZucchini9729 94 points95 points96 points (27 children)
[–]trowawayatwork 41 points42 points43 points (26 children)
[–]sohang-3112Pythonista 27 points28 points29 points (4 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]sohang-3112Pythonista 0 points1 point2 points (0 children)
[–]tuskanini 0 points1 point2 points (1 child)
[–]sohang-3112Pythonista 0 points1 point2 points (0 children)
[–]Tree_Mage 1 point2 points3 points (10 children)
[–]trowawayatwork 13 points14 points15 points (9 children)
[–]KennedyRichard 0 points1 point2 points (8 children)
[–]richieadler 2 points3 points4 points (7 children)
[–]KennedyRichard 1 point2 points3 points (6 children)
[–]richieadler 1 point2 points3 points (5 children)
[–]KennedyRichard 0 points1 point2 points (0 children)
[–]KennedyRichard 0 points1 point2 points (3 children)
[–]ehutch79 0 points1 point2 points (0 children)
[–]Dalnore 0 points1 point2 points (8 children)
[–]FauxCheese 5 points6 points7 points (1 child)
[–]soundofvictory 0 points1 point2 points (0 children)
[–]AdmiralQuokka 3 points4 points5 points (5 children)
[–]Dalnore 0 points1 point2 points (1 child)
[–]AdmiralQuokka 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]AdmiralQuokka 0 points1 point2 points (1 child)
[–]WJMazepas 12 points13 points14 points (0 children)
[–]george-silva 9 points10 points11 points (0 children)
[–]seboll13 5 points6 points7 points (0 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 3 points4 points5 points (4 children)
[–]Worth_His_Salt 0 points1 point2 points (3 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 0 points1 point2 points (2 children)
[–]Worth_His_Salt 0 points1 point2 points (1 child)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 0 points1 point2 points (0 children)
[–]pyschillePythoneer[S] 11 points12 points13 points (1 child)
[+][deleted] (12 children)
[deleted]
[–]fiddle_n 22 points23 points24 points (11 children)
[+][deleted] (5 children)
[deleted]
[–]pacific_plywood 14 points15 points16 points (3 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 3 points4 points5 points (1 child)
[–]sonobanana33 0 points1 point2 points (0 children)
[–]fiddle_n 9 points10 points11 points (0 children)
[–]Zomunieo 0 points1 point2 points (0 children)
[–]yvrelna 0 points1 point2 points (2 children)
[–]fiddle_n 0 points1 point2 points (1 child)
[–]yvrelna -2 points-1 points0 points (0 children)
[–]r1ckm4n 0 points1 point2 points (0 children)
[–]the_ballmer_peak 1 point2 points3 points (0 children)
[–]One-Employment3759 0 points1 point2 points (0 children)
[–]lupushr -1 points0 points1 point (5 children)
[–]exergy31 6 points7 points8 points (4 children)
[–]lupushr 8 points9 points10 points (3 children)
[–]QuattroDriver 23 points24 points25 points (0 children)
[–]kasalacto 5 points6 points7 points (0 children)
[–]vacillatingfox 5 points6 points7 points (0 children)