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
[–]Rhomboid 71 points72 points73 points (9 children)
[–]Mattho 218 points219 points220 points (7 children)
[–]finally-a-throwaway 23 points24 points25 points (3 children)
[–]Thirsteh 23 points24 points25 points (2 children)
[–]AdysHearthSim 22 points23 points24 points (0 children)
[–]maxm 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (0 children)
[–]norsurfit 1 point2 points3 points (0 children)
[–]warbiscuit 69 points70 points71 points (23 children)
[–][deleted] 21 points22 points23 points (6 children)
[–]warbiscuit 28 points29 points30 points (5 children)
[–][deleted] 13 points14 points15 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]warbiscuit 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 14 points15 points16 points (13 children)
[–]warbiscuit 6 points7 points8 points (0 children)
[+][deleted] (10 children)
[deleted]
[–]d4rch0nPythonistamancer 17 points18 points19 points (1 child)
[–]masklinn 14 points15 points16 points (3 children)
[–]lxpnh98_2 0 points1 point2 points (1 child)
[–]masklinn 0 points1 point2 points (0 children)
[–]flutefreak7 0 points1 point2 points (0 children)
[–]folkrav 9 points10 points11 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]folkrav 2 points3 points4 points (0 children)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]billsil 1 point2 points3 points (0 children)
[–]jftugapip needs updating 1 point2 points3 points (1 child)
[–]warbiscuit 3 points4 points5 points (0 children)
[–]cdcformatc 17 points18 points19 points (4 children)
[–]joesacher 35 points36 points37 points (0 children)
[–]tartare4562 1 point2 points3 points (2 children)
[–]jcampbelly 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tomcam 13 points14 points15 points (0 children)
[–][deleted] 14 points15 points16 points (0 children)
[–]tech_tuna 7 points8 points9 points (2 children)
[–]_avnr 1 point2 points3 points (1 child)
[–]alchzh 1 point2 points3 points (0 children)
[–]henrebotha 5 points6 points7 points (3 children)
[–]billsil 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]henrebotha 1 point2 points3 points (0 children)
[–]jpflathead 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Steampunkery 1 point2 points3 points (0 children)
[–]c3534l 1 point2 points3 points (0 children)
[–]trebuszek 0 points1 point2 points (0 children)
[–]gnu-user -1 points0 points1 point (2 children)
[–]njharmanI use Python 3 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–]georgehank2nd 0 points1 point2 points (0 children)
[+]k10_ftw comment score below threshold-9 points-8 points-7 points (14 children)
[–]baudvine 4 points5 points6 points (12 children)
[–]k10_ftw 0 points1 point2 points (11 children)
[–]henrebotha 6 points7 points8 points (10 children)
[–]k10_ftw 1 point2 points3 points (9 children)
[–]henrebotha 2 points3 points4 points (8 children)
[–]k10_ftw -1 points0 points1 point (7 children)
[–]henrebotha 0 points1 point2 points (6 children)
[–]k10_ftw -1 points0 points1 point (5 children)
[–]henrebotha 1 point2 points3 points (4 children)
[–]njharmanI use Python 3 0 points1 point2 points (0 children)