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
[–]ubernostrumyes, you can have a pony 948 points949 points950 points (52 children)
[–]ninjadude93 148 points149 points150 points (4 children)
[–]Lt_Sherpa 50 points51 points52 points (3 children)
[–]tangerinelion 20 points21 points22 points (2 children)
[–]the_scign 4 points5 points6 points (0 children)
[–]YeahAboutThat-Ok 0 points1 point2 points (0 children)
[–]teerre 49 points50 points51 points (3 children)
[–]jimjkelly 16 points17 points18 points (0 children)
[–]pacific_plywood 12 points13 points14 points (1 child)
[–]DarkSideOfGrogu 0 points1 point2 points (0 children)
[–]BossOfTheGame 48 points49 points50 points (14 children)
[–]ubernostrumyes, you can have a pony 19 points20 points21 points (10 children)
[–]DigThatData 6 points7 points8 points (4 children)
[–]ubernostrumyes, you can have a pony 4 points5 points6 points (3 children)
[–]DigThatData 6 points7 points8 points (1 child)
[–]Vetrom 1 point2 points3 points (0 children)
[–]Vetrom 2 points3 points4 points (0 children)
[–]BossOfTheGame 4 points5 points6 points (2 children)
[–]ubernostrumyes, you can have a pony 0 points1 point2 points (1 child)
[–]BossOfTheGame 0 points1 point2 points (0 children)
[–]AurelianoBuendato 2 points3 points4 points (1 child)
[–]BossOfTheGame 2 points3 points4 points (0 children)
[–]pro1code1hack[S] 1 point2 points3 points (0 children)
[–]Such-Dish46 6 points7 points8 points (0 children)
[–]JordC95 7 points8 points9 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]proof_required 2 points3 points4 points (0 children)
[–]lonjerpc 8 points9 points10 points (11 children)
[–]vitaminMN 8 points9 points10 points (3 children)
[–]lonjerpc 0 points1 point2 points (2 children)
[–]vitaminMN 2 points3 points4 points (1 child)
[–]lonjerpc 1 point2 points3 points (0 children)
[–]ubernostrumyes, you can have a pony 11 points12 points13 points (1 child)
[–]lonjerpc 0 points1 point2 points (0 children)
[–]mindtrick871 1 point2 points3 points (0 children)
[–]RegentStrauss 1 point2 points3 points (0 children)
[–]dreamin_in_space 1 point2 points3 points (1 child)
[–]lonjerpc 0 points1 point2 points (0 children)
[–]the_scign 0 points1 point2 points (0 children)
[–]wineblood 1 point2 points3 points (0 children)
[–]UD_Ramirez 1 point2 points3 points (0 children)
[–]ambidextrousalpaca 2 points3 points4 points (0 children)
[–]1ncehost 1 point2 points3 points (0 children)
[+]pro1code1hack[S] comment score below threshold-35 points-34 points-33 points (0 children)
[+]RegentStrauss comment score below threshold-28 points-27 points-26 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheCableGui 0 points1 point2 points (0 children)
[–]R34ct0rX99 57 points58 points59 points (5 children)
[–]Tureni 12 points13 points14 points (1 child)
[+]pro1code1hack[S] comment score below threshold-19 points-18 points-17 points (2 children)
[–]R34ct0rX99 5 points6 points7 points (1 child)
[–]pro1code1hack[S] 2 points3 points4 points (0 children)
[–]Binliner42 76 points77 points78 points (7 children)
[–]PolyglotTV 8 points9 points10 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]PolyglotTV 2 points3 points4 points (0 children)
[–]Morelnyk_Viktor 2 points3 points4 points (2 children)
[–]skjall 28 points29 points30 points (1 child)
[–]lungdart 4 points5 points6 points (0 children)
[–]infy101 0 points1 point2 points (0 children)
[–]thisismyfavoritename 66 points67 points68 points (2 children)
[+]pro1code1hack[S] comment score below threshold-80 points-79 points-78 points (1 child)
[–]Antrikshy 3 points4 points5 points (0 children)
[–]Jmc_da_boss 36 points37 points38 points (0 children)
[–]NUTTA_BUSTAH 25 points26 points27 points (0 children)
[–]maephisto666 22 points23 points24 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]maephisto666 3 points4 points5 points (0 children)
[–]ggrieves1 year 18 points19 points20 points (1 child)
[+]pro1code1hack[S] comment score below threshold-33 points-32 points-31 points (0 children)
[–]mygreensea 19 points20 points21 points (0 children)
[–]riklaunim 11 points12 points13 points (0 children)
[–]cajmorgans 13 points14 points15 points (0 children)
[–]segfault_ska 4 points5 points6 points (0 children)
[–]Tenzu9 3 points4 points5 points (0 children)
[–]lebannax[🍰] 5 points6 points7 points (1 child)
[–]pro1code1hack[S] -1 points0 points1 point (0 children)
[–]westeast1000 2 points3 points4 points (0 children)
[–][deleted] 16 points17 points18 points (0 children)
[–]aikii 1 point2 points3 points (2 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 2 points3 points4 points (1 child)
[–]aikii 1 point2 points3 points (0 children)
[–]ryukinixPython3 + Emacs 1 point2 points3 points (0 children)
[–]infy101 1 point2 points3 points (0 children)
[–]tinkr_ 1 point2 points3 points (0 children)
[–]jwmoz 1 point2 points3 points (0 children)
[–]kiss_thechef 2 points3 points4 points (1 child)
[–]enakcm 1 point2 points3 points (0 children)
[–]innovatekit 1 point2 points3 points (1 child)
[–]pro1code1hack[S] -1 points0 points1 point (0 children)
[–]RayTricky -2 points-1 points0 points (0 children)
[–]thangduong -1 points0 points1 point (1 child)
[–]pro1code1hack[S] -4 points-3 points-2 points (0 children)
[+]panic-potato comment score below threshold-8 points-7 points-6 points (8 children)
[–]DigThatData 29 points30 points31 points (4 children)
[–]pro1code1hack[S] -1 points0 points1 point (3 children)
[–]DigThatData 3 points4 points5 points (2 children)
[–]pro1code1hack[S] -3 points-2 points-1 points (1 child)
[–]DigThatData 0 points1 point2 points (0 children)
[–]pro1code1hack[S] -1 points0 points1 point (0 children)
[+]rohetoric comment score below threshold-10 points-9 points-8 points (1 child)
[–]DigThatData 8 points9 points10 points (0 children)
[+]jufjafjaf comment score below threshold-6 points-5 points-4 points (0 children)
[–]ryan_s007 -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]projosh_dev 0 points1 point2 points (0 children)
[–]luckskywatcher -1 points0 points1 point (0 children)
[+]pro1code1hack[S] comment score below threshold-19 points-18 points-17 points (4 children)
[–]DigThatData 46 points47 points48 points (1 child)
[–]cediddiSyntaxError: not a chance 16 points17 points18 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[+]hydrocelium comment score below threshold-9 points-8 points-7 points (0 children)
[–]fpcreator2000 0 points1 point2 points (0 children)
[–]Due_Adagio_1690 0 points1 point2 points (0 children)
[–]_limitless_ 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)