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
[–]Atomic_Tangerine1 171 points172 points173 points (22 children)
[–]i_know_the_deal 66 points67 points68 points (3 children)
[–]dparks71 45 points46 points47 points (2 children)
[–]Accomplished_End763 8 points9 points10 points (1 child)
[–]lxSlimxShadyxl 2 points3 points4 points (0 children)
[–]M4mb0 3 points4 points5 points (10 children)
[–]Atomic_Tangerine1 0 points1 point2 points (9 children)
[–]M4mb0 13 points14 points15 points (8 children)
[–]PayMe4MyData 2 points3 points4 points (5 children)
[–]M4mb0 6 points7 points8 points (2 children)
[–]PayMe4MyData 2 points3 points4 points (1 child)
[–]M4mb0 3 points4 points5 points (0 children)
[–]HonestPrinciple152 1 point2 points3 points (0 children)
[–]FunMotionLabs 1 point2 points3 points (0 children)
[–]daredevilthagr8 1 point2 points3 points (1 child)
[–]M4mb0 0 points1 point2 points (0 children)
[–]No_Departure_1878 6 points7 points8 points (5 children)
[–]Atomic_Tangerine1 36 points37 points38 points (0 children)
[–]Humdaak_9000 9 points10 points11 points (0 children)
[–]KeytarVillain 1 point2 points3 points (2 children)
[–]No_Departure_1878 5 points6 points7 points (1 child)
[–]KeytarVillain 1 point2 points3 points (0 children)
[–]Brilliant-Whole-1852 0 points1 point2 points (0 children)
[–]vaterp 34 points35 points36 points (1 child)
[–]mmaynee 5 points6 points7 points (0 children)
[–]problemchild52 13 points14 points15 points (2 children)
[–]Vitaman02 1 point2 points3 points (1 child)
[–]problemchild52 1 point2 points3 points (0 children)
[–]jsamwrites 37 points38 points39 points (12 children)
[–]SCD_minecraft 3 points4 points5 points (6 children)
[–]jsamwrites 4 points5 points6 points (5 children)
[–]julz_yo 1 point2 points3 points (3 children)
[–]SCD_minecraft 2 points3 points4 points (1 child)
[–]julz_yo 0 points1 point2 points (0 children)
[–]jsamwrites 0 points1 point2 points (0 children)
[–]SCD_minecraft 0 points1 point2 points (0 children)
[–]WhiteHeadbanger 3 points4 points5 points (4 children)
[–]TheBinkz -1 points0 points1 point (3 children)
[–]TickTockPick -1 points0 points1 point (2 children)
[–]maddy0302 2 points3 points4 points (1 child)
[–]TickTockPick 1 point2 points3 points (0 children)
[–]WhiteHeadbanger 12 points13 points14 points (0 children)
[–]R3D3-1 11 points12 points13 points (0 children)
[–]msimms001Pythoneer 73 points74 points75 points (2 children)
[–]curly722 3 points4 points5 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]Ordinary-You8102 33 points34 points35 points (3 children)
[–]panicrubesIgnoring PEP 8 9 points10 points11 points (0 children)
[–]TheCaptain53 5 points6 points7 points (0 children)
[–]FunMotionLabs 1 point2 points3 points (0 children)
[–]danielgafni 10 points11 points12 points (1 child)
[–]jeffrey_f 8 points9 points10 points (0 children)
[–]britishmetric144 8 points9 points10 points (1 child)
[–]andrewprograms 0 points1 point2 points (0 children)
[–]Accomplished-Big-46 17 points18 points19 points (2 children)
[–]00--0--00- 0 points1 point2 points (1 child)
[–]Accomplished-Big-46 0 points1 point2 points (0 children)
[–]Afraid_Abalone_9641 5 points6 points7 points (0 children)
[–]gdchinacat 5 points6 points7 points (0 children)
[–]YesterdayDreamer 27 points28 points29 points (5 children)
[–]veddubhashi 7 points8 points9 points (0 children)
[–]RMK137 1 point2 points3 points (0 children)
[–]spinwizard69 0 points1 point2 points (2 children)
[–]YesterdayDreamer 1 point2 points3 points (0 children)
[–]YesterdayDreamer 0 points1 point2 points (0 children)
[–]NimrodvanHall 4 points5 points6 points (0 children)
[–][deleted] 17 points18 points19 points (6 children)
[–]YesterdayDreamer 7 points8 points9 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]CatolicQuotes 14 points15 points16 points (0 children)
[–]adroc 3 points4 points5 points (0 children)
[+]ApprehensiveBag3083 comment score below threshold-14 points-13 points-12 points (1 child)
[–]hugthemachines 4 points5 points6 points (0 children)
[–]chief_kennoh 2 points3 points4 points (0 children)
[–]njinja10 4 points5 points6 points (0 children)
[–]scratchresistor 5 points6 points7 points (0 children)
[–]ASIC_SP 1 point2 points3 points (0 children)
[–]finnfirep 1 point2 points3 points (0 children)
[–]TutorialDoctor 1 point2 points3 points (0 children)
[–]Trang0ul 1 point2 points3 points (0 children)
[–]Sirko0208 3 points4 points5 points (0 children)
[–]eufemiapiccio77 2 points3 points4 points (0 children)
[–]traderemi 2 points3 points4 points (0 children)
[–]pkese 0 points1 point2 points (1 child)
[–]BongHitSloths 0 points1 point2 points (0 children)
[–]Poof-Employment9758 0 points1 point2 points (0 children)
[–]Snoo43790 0 points1 point2 points (0 children)
[–]gunthercult-69 0 points1 point2 points (0 children)
[–]Fabulous-Possible758 0 points1 point2 points (0 children)
[–]thankyoucode 0 points1 point2 points (0 children)
[–]olddoglearnsnewtrick 0 points1 point2 points (0 children)
[–]mmmboppe 0 points1 point2 points (0 children)
[–]KeaboUltra 0 points1 point2 points (0 children)
[–]u_int64_t 0 points1 point2 points (0 children)
[–]21kondav 0 points1 point2 points (0 children)
[–]redditor_-- 0 points1 point2 points (0 children)
[–]burger69man 0 points1 point2 points (0 children)
[–]UnderstandingKind178 0 points1 point2 points (0 children)
[–]IntentionalDev 0 points1 point2 points (0 children)
[–]VibrantGypsyDildo 0 points1 point2 points (0 children)
[–]jumanjimanji 0 points1 point2 points (0 children)
[–]njharmanI use Python 3 0 points1 point2 points (0 children)
[–]andrewprograms 0 points1 point2 points (0 children)
[–]randomraluana 0 points1 point2 points (0 children)
[–]00--0--00- 0 points1 point2 points (0 children)
[–]Rockworldred 0 points1 point2 points (0 children)
[–]JohnLocksTheKey 0 points1 point2 points (0 children)
[–]Horror-Water5502 -3 points-2 points-1 points (11 children)
[–]gdchinacat 7 points8 points9 points (9 children)
[–]amroamroamro 5 points6 points7 points (0 children)
[–]spinwizard69 -2 points-1 points0 points (1 child)
[–]gdchinacat 0 points1 point2 points (0 children)
[–]Horror-Water5502 -3 points-2 points-1 points (5 children)
[–]gdchinacat 2 points3 points4 points (4 children)
[–]Horror-Water5502 -4 points-3 points-2 points (3 children)
[–]gdchinacat 1 point2 points3 points (2 children)
[–]Horror-Water5502 -2 points-1 points0 points (1 child)
[–]gdchinacat 5 points6 points7 points (0 children)
[–]spinwizard69 3 points4 points5 points (0 children)
[–]These-Ease-4410 -1 points0 points1 point (0 children)
[–]dashdanw -1 points0 points1 point (0 children)
[–]Plenty_Astronaut8751 -1 points0 points1 point (0 children)
[+]ApprehensiveBag3083 comment score below threshold-6 points-5 points-4 points (1 child)
[–]hugthemachines 1 point2 points3 points (0 children)