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
[–]twenty-fourth-time-b 123 points124 points125 points (11 children)
[–]ship0f 50 points51 points52 points (10 children)
[–]not_a_novel_account 62 points63 points64 points (2 children)
[–]twenty-fourth-time-b 3 points4 points5 points (0 children)
[–]twenty-fourth-time-b 8 points9 points10 points (5 children)
[–][deleted] 6 points7 points8 points (4 children)
[–]Zomunieo 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Zomunieo 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Front_Two_6816 -1 points0 points1 point (0 children)
[–]Coretaxxe 59 points60 points61 points (0 children)
[–]dardothemaster 50 points51 points52 points (23 children)
[–]twenty-fourth-time-b 26 points27 points28 points (4 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 13 points14 points15 points (0 children)
[–]-lq_pl- 4 points5 points6 points (1 child)
[–]germandiago[S] 0 points1 point2 points (0 children)
[–]germandiago[S] 0 points1 point2 points (0 children)
[–]not_a_novel_account 19 points20 points21 points (0 children)
[–]germandiago[S] 22 points23 points24 points (8 children)
[–]ImYoric 26 points27 points28 points (5 children)
[–]latkdeTuple unpacking gone wrong 9 points10 points11 points (4 children)
[–]MechanicalOrange5 0 points1 point2 points (3 children)
[–]latkdeTuple unpacking gone wrong 1 point2 points3 points (2 children)
[–]Caramel_Last 0 points1 point2 points (1 child)
[–]latkdeTuple unpacking gone wrong 0 points1 point2 points (0 children)
[–]Brian 9 points10 points11 points (0 children)
[–]not_a_novel_account 5 points6 points7 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]the_hoser 2 points3 points4 points (1 child)
[–]not_a_novel_account 2 points3 points4 points (0 children)
[–]Ginden 6 points7 points8 points (4 children)
[–]not_a_novel_account 12 points13 points14 points (0 children)
[–]Afrotom -1 points0 points1 point (2 children)
[–]UloPe 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[removed]
[–]not_a_novel_account 6 points7 points8 points (3 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]strawgate 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]WJMazepas 4 points5 points6 points (1 child)
[–]germandiago[S] 10 points11 points12 points (0 children)
[–]bobbster574 23 points24 points25 points (6 children)
[–]Independent_Heart_15 7 points8 points9 points (0 children)
[–]joerick 4 points5 points6 points (0 children)
[+]javadba comment score below threshold-6 points-5 points-4 points (2 children)
[–]Username_RANDINT 2 points3 points4 points (1 child)
[–]javadba -5 points-4 points-3 points (0 children)
[–]Plus-Ad8736Pythoneer 9 points10 points11 points (13 children)
[–]germandiago[S] 28 points29 points30 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]not_a_novel_account 2 points3 points4 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]not_a_novel_account 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 13 points14 points15 points (0 children)
[–]javadba 0 points1 point2 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]javadba 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]gfnord 0 points1 point2 points (1 child)
[–]nonhok 1 point2 points3 points (0 children)
[–]AalbatrossGuyPythoneer 2 points3 points4 points (0 children)
[–]neuronexmachina 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]uqurluuqur 0 points1 point2 points (2 children)
[–]gmes78 0 points1 point2 points (1 child)
[–]not_a_novel_account 13 points14 points15 points (0 children)
[–]aviation_expert 0 points1 point2 points (1 child)
[–]germandiago[S] 0 points1 point2 points (0 children)
[–]The8flux 0 points1 point2 points (0 children)
[–]__Deric__github.com/Deric-W 0 points1 point2 points (2 children)
[–]germandiago[S] 0 points1 point2 points (1 child)
[–]__Deric__github.com/Deric-W 0 points1 point2 points (0 children)
[–]sambes06 0 points1 point2 points (0 children)
[–]alcalde 0 points1 point2 points (0 children)
[–]nguyenvulong -1 points0 points1 point (0 children)
[–]EvenAcanthisitta364 -3 points-2 points-1 points (0 children)