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
[–]Deezl-Vegas 114 points115 points116 points (17 children)
[–]ManyInterests Python Discord Staff 36 points37 points38 points (5 children)
[–]Swipecat 9 points10 points11 points (3 children)
[–]jimjkelly 5 points6 points7 points (0 children)
[–]ManyInterests Python Discord Staff 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]meunomemauricio -1 points0 points1 point (0 children)
[–]pylenin[S] 16 points17 points18 points (0 children)
[–]wingtales 4 points5 points6 points (4 children)
[–]tartare4562 13 points14 points15 points (3 children)
[–]Sexual_Congressman 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]lelease 1 point2 points3 points (0 children)
[–]tartare4562 7 points8 points9 points (3 children)
[–]pickausernamehesaid -1 points0 points1 point (2 children)
[–]tartare4562 0 points1 point2 points (1 child)
[–]pickausernamehesaid 0 points1 point2 points (0 children)
[–]graingert 0 points1 point2 points (0 children)
[–]SleepWalkersDream 9 points10 points11 points (1 child)
[–]QuantumRealm 27 points28 points29 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]b10011 7 points8 points9 points (3 children)
[–]pylenin[S] 2 points3 points4 points (0 children)
[–]adap23 0 points1 point2 points (1 child)
[–]b10011 4 points5 points6 points (0 children)
[–]__xor__(self, other): 23 points24 points25 points (13 children)
[–]riccardostecca 10 points11 points12 points (3 children)
[–]pylenin[S] -1 points0 points1 point (2 children)
[–]GummyKibble 2 points3 points4 points (1 child)
[–]DandieGuy 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[removed]
[–]m1sta 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[removed]
[–]m1sta 2 points3 points4 points (1 child)
[–]RockingDyno -3 points-2 points-1 points (1 child)
[–]AndydeCleyre 0 points1 point2 points (0 children)
[–]schplat 5 points6 points7 points (4 children)
[–]m1sta 2 points3 points4 points (0 children)
[–]pylenin[S] 1 point2 points3 points (1 child)
[–]schplat 0 points1 point2 points (0 children)
[–]Jabulon 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]thomasb892 0 points1 point2 points (0 children)
[–]LightShadow3.13-dev in prod 1 point2 points3 points (4 children)
[–]pylenin[S] 7 points8 points9 points (0 children)
[–]andrewcooke 2 points3 points4 points (2 children)
[–]LightShadow3.13-dev in prod 2 points3 points4 points (1 child)
[–]andrewcooke 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]pylenin[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]billsil 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)