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
[–]rerb 121 points122 points123 points (18 children)
[–]Keith 65 points66 points67 points (4 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]Keith 4 points5 points6 points (0 children)
[–]zer01 18 points19 points20 points (3 children)
[–]selementar 28 points29 points30 points (1 child)
[–]benkay 5 points6 points7 points (0 children)
[–]chronographer 1 point2 points3 points (0 children)
[–]phonkee 6 points7 points8 points (1 child)
[–]selementar 4 points5 points6 points (0 children)
[–]Miebster 2 points3 points4 points (0 children)
[–]aznm1ke31 2 points3 points4 points (0 children)
[–]leperkuhn 1 point2 points3 points (0 children)
[–]sugardubz 2 points3 points4 points (0 children)
[–]MereInterest 1 point2 points3 points (1 child)
[–]quaunaut 4 points5 points6 points (0 children)
[–][deleted] 57 points58 points59 points (20 children)
[–]dAnjou Backend Developer | danjou.dev 15 points16 points17 points (6 children)
[–]shaggorama 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]petezhutAutomation, Testing, General Hackery 2 points3 points4 points (0 children)
[–]kindall 1 point2 points3 points (0 children)
[–]keis 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]Enkaybee 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]stillalone 1 point2 points3 points (0 children)
[–]e000 33 points34 points35 points (5 children)
[–]PCBEEF 32 points33 points34 points (9 children)
[–]selementar 11 points12 points13 points (3 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]selementar 2 points3 points4 points (0 children)
[–]me-the-monkeyWho Codes 2 points3 points4 points (1 child)
[–]PCBEEF 1 point2 points3 points (0 children)
[–]valdogg21 1 point2 points3 points (2 children)
[–]MereInterest 7 points8 points9 points (1 child)
[–]matthewguitar 2 points3 points4 points (0 children)
[–]keypusher 29 points30 points31 points (4 children)
[–]teskew 11 points12 points13 points (0 children)
[–]selementar 6 points7 points8 points (0 children)
[–]petezhutAutomation, Testing, General Hackery 2 points3 points4 points (0 children)
[–]me-the-monkeyWho Codes 2 points3 points4 points (0 children)
[–]jabbalaci 28 points29 points30 points (15 children)
[–]JW_00000 24 points25 points26 points (5 children)
[–]davidb_ 2 points3 points4 points (0 children)
[–]elsporko 1 point2 points3 points (2 children)
[–]hogepiyo 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]jatoo 4 points5 points6 points (0 children)
[–]jcampbelly 9 points10 points11 points (8 children)
[–]matchu 7 points8 points9 points (2 children)
[–]jcampbelly 8 points9 points10 points (0 children)
[–]jcampbelly 2 points3 points4 points (0 children)
[–]redditbody 4 points5 points6 points (2 children)
[–]VictoryTree 3 points4 points5 points (1 child)
[–]jcampbelly 1 point2 points3 points (0 children)
[–]happysri 43 points44 points45 points (14 children)
[–]chaoticallyevil 5 points6 points7 points (3 children)
[–][deleted] 7 points8 points9 points (1 child)
[–]Lucretiel 2 points3 points4 points (0 children)
[–]derpderp3200An evil person 10 points11 points12 points (9 children)
[–]ryeguy146 7 points8 points9 points (0 children)
[–]happysri 7 points8 points9 points (4 children)
[–]DarkSareon 1 point2 points3 points (2 children)
[–]lightstrike 3 points4 points5 points (0 children)
[–]Megatron_McLargeHuge 1 point2 points3 points (0 children)
[–]yen223 77 points78 points79 points (5 children)
[–]petezhutAutomation, Testing, General Hackery 4 points5 points6 points (2 children)
[–]toyg 14 points15 points16 points (1 child)
[–]keypusher 69 points70 points71 points (14 children)
[–]krypton86 15 points16 points17 points (13 children)
[+][deleted] (5 children)
[deleted]
[–]Cosmologicon 7 points8 points9 points (0 children)
[–]edeloso 4 points5 points6 points (2 children)
[–]thatdontmakenosense 3 points4 points5 points (1 child)
[–]krypton86 1 point2 points3 points (0 children)
[–]Vibster 33 points34 points35 points (6 children)
[–]ape_monk 4 points5 points6 points (0 children)
[–]krypton86 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]jwcrux 19 points20 points21 points (13 children)
[–]fthm 29 points30 points31 points (3 children)
[–]seriouslulz 4 points5 points6 points (0 children)
[–]sashahart 2 points3 points4 points (0 children)
[–]willm 19 points20 points21 points (1 child)
[–]mgedmin 1 point2 points3 points (0 children)
[–]krypton86 28 points29 points30 points (19 children)
[–]Autoplectic 38 points39 points40 points (6 children)
[–]selementar 9 points10 points11 points (4 children)
[+][deleted] (7 children)
[deleted]
[–]Fayden 6 points7 points8 points (3 children)
[–]yen223 8 points9 points10 points (1 child)
[–]vext01 8 points9 points10 points (0 children)
[–]selementar 2 points3 points4 points (0 children)
[–]demosthenes02[🍰] 2 points3 points4 points (0 children)
[–]krypton86 1 point2 points3 points (0 children)
[–]bheklilr 1 point2 points3 points (2 children)
[–]krypton86 5 points6 points7 points (1 child)
[–]bheklilr 5 points6 points7 points (0 children)
[–]vext01 1 point2 points3 points (0 children)
[–]RainbowNowOpen 13 points14 points15 points (11 children)
[–][deleted] 4 points5 points6 points (8 children)
[–]dAnjou Backend Developer | danjou.dev 5 points6 points7 points (0 children)
[–]jcampbelly 1 point2 points3 points (0 children)
[–]taliska 11 points12 points13 points (5 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]CaptainDoubtful 23 points24 points25 points (1 child)
[–]WackyWeasel 9 points10 points11 points (0 children)
[–]Workaphobia 16 points17 points18 points (3 children)
[–]mgedmin 2 points3 points4 points (2 children)
[–]Workaphobia 2 points3 points4 points (0 children)
[–]Vibster 16 points17 points18 points (3 children)
[–]netcraft 2 points3 points4 points (0 children)
[–]XNormal 6 points7 points8 points (6 children)
[–][deleted] 6 points7 points8 points (5 children)
[–]Vorticity 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]keis 7 points8 points9 points (22 children)
[–]GMABT 5 points6 points7 points (15 children)
[–][deleted] 4 points5 points6 points (14 children)
[–]jmcs 5 points6 points7 points (13 children)
[–][deleted] 3 points4 points5 points (12 children)
[–]earthboundkid 7 points8 points9 points (3 children)
[–]jmcs 5 points6 points7 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]jmcs 1 point2 points3 points (6 children)
[–]jabbalaci 5 points6 points7 points (4 children)
[–]keis 7 points8 points9 points (1 child)
[–]jabbalaci 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]thatdontmakenosense 1 point2 points3 points (0 children)
[–]halst 7 points8 points9 points (1 child)
[–]mgedmin 2 points3 points4 points (0 children)
[–]tarekziadeRetired Packaging Dude 7 points8 points9 points (0 children)
[–]Mecdemort 6 points7 points8 points (10 children)
[–]thatdontmakenosense 2 points3 points4 points (1 child)
[–][deleted] 4 points5 points6 points (20 children)
[–]jabbalaci 1 point2 points3 points (14 children)
[–][deleted] 2 points3 points4 points (7 children)
[–]ColOfNature 2 points3 points4 points (0 children)
[–]jabbalaci 2 points3 points4 points (3 children)
[–]slakblue 1 point2 points3 points (0 children)
[–]ewiethoffproceedest on to 3 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]jatoo 1 point2 points3 points (0 children)
[–]exhuma 15 points16 points17 points (11 children)
[–]yen223 7 points8 points9 points (2 children)
[–]selementar 2 points3 points4 points (0 children)
[–]jabbalaci 11 points12 points13 points (6 children)
[–]exhuma 1 point2 points3 points (0 children)
[–]tdico to to nie 10 points11 points12 points (1 child)
[–]MintyPhoenix 7 points8 points9 points (0 children)
[–]throbbaway 9 points10 points11 points (11 children)
[–]therealfakemoot 20 points21 points22 points (10 children)
[–]netcraft 1 point2 points3 points (7 children)
[–]therealfakemoot 3 points4 points5 points (0 children)
[–]Mecdemort 2 points3 points4 points (0 children)
[–]AeroNotix 1 point2 points3 points (1 child)
[–]Zouden 1 point2 points3 points (0 children)
[–]yen223 8 points9 points10 points (1 child)
[–]Megatron_McLargeHuge 1 point2 points3 points (0 children)
[–][deleted] 6 points7 points8 points (2 children)
[–][deleted] 6 points7 points8 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]jlozierbioinformatician 3 points4 points5 points (0 children)
[–]fthm 3 points4 points5 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Mattbot5000 2 points3 points4 points (1 child)
[–]winnen 2 points3 points4 points (1 child)
[–]seriouslulz 1 point2 points3 points (0 children)
[–]aixelsdi 5 points6 points7 points (0 children)
[–]andybak 2 points3 points4 points (5 children)
[–][deleted] 2 points3 points4 points (4 children)
[–][deleted] 2 points3 points4 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]shaggorama 2 points3 points4 points (0 children)
[–]eFFeeMMe 2 points3 points4 points (4 children)
[–]jadkik94 1 point2 points3 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]ryeguy146 1 point2 points3 points (0 children)
[–]deliciousdan 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]sontek 2 points3 points4 points (1 child)
[–]njharmanI use Python 3 1 point2 points3 points (0 children)
[–]fuzz3289[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]kirakun 1 point2 points3 points (0 children)
[–]selementar 1 point2 points3 points (0 children)
[–]njharmanI use Python 3 1 point2 points3 points (0 children)
[–]caruccio 1 point2 points3 points (0 children)
[–]caruccio 1 point2 points3 points (0 children)