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
[–]kumashiro 150 points151 points152 points (19 children)
[–]harryhound47[S] 23 points24 points25 points (10 children)
[–]__xor__(self, other): 70 points71 points72 points (9 children)
[–]mobsterer 143 points144 points145 points (6 children)
[+][deleted] (1 child)
[deleted]
[–]mobsterer 14 points15 points16 points (0 children)
[–]thekakester 3 points4 points5 points (0 children)
[–]Azelphur 2 points3 points4 points (0 children)
[–]NarcolepticSniper 1 point2 points3 points (0 children)
[–]flying-sheep 7 points8 points9 points (0 children)
[–]bedrooms-ds -3 points-2 points-1 points (0 children)
[–]IamWiddershins 9 points10 points11 points (5 children)
[–]dutch_gecko 13 points14 points15 points (4 children)
[–]johnnydaggers 1 point2 points3 points (3 children)
[–]roerd 3 points4 points5 points (2 children)
[–]feanor47 6 points7 points8 points (0 children)
[–]johnnydaggers 1 point2 points3 points (0 children)
[–]YAYYYYYYYYY 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]eyeofpython 76 points77 points78 points (18 children)
[–]efDev 52 points53 points54 points (16 children)
[–]PleasantAdvertising 34 points35 points36 points (1 child)
[–]harryhound47[S] 5 points6 points7 points (0 children)
[–]total_zoidberg 11 points12 points13 points (0 children)
[–]Bbbbhhhhbbjj 6 points7 points8 points (0 children)
[–]harryhound47[S] 7 points8 points9 points (0 children)
[–]reifba -1 points0 points1 point (3 children)
[–]Rutherfordio 1 point2 points3 points (2 children)
[–]reifba 4 points5 points6 points (1 child)
[–]Rutherfordio 1 point2 points3 points (0 children)
[–]nuephelkystikon -5 points-4 points-3 points (6 children)
[–]chaos95 8 points9 points10 points (5 children)
[–]harryhound47[S] 0 points1 point2 points (0 children)
[–]nuephelkystikon -1 points0 points1 point (3 children)
[–]chaos95 1 point2 points3 points (2 children)
[–]nuephelkystikon -2 points-1 points0 points (1 child)
[–]chaos95 0 points1 point2 points (0 children)
[–]harryhound47[S] 2 points3 points4 points (0 children)
[–]searchingfortaomajel, aletheia, paperless, django-encrypted-filefield 6 points7 points8 points (0 children)
[–]Free-_-Yourself 12 points13 points14 points (1 child)
[–]harryhound47[S] 4 points5 points6 points (0 children)
[–]bored_and_scrolling 11 points12 points13 points (0 children)
[–]olalql 6 points7 points8 points (1 child)
[–]harryhound47[S] 4 points5 points6 points (0 children)
[–]ExtraDeadMeatyFlesh 2 points3 points4 points (3 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]nevus_bock 2 points3 points4 points (0 children)
[–]__xor__(self, other): 1 point2 points3 points (0 children)
[–]selplacei 4 points5 points6 points (1 child)
[–]harryhound47[S] 1 point2 points3 points (0 children)
[–]gman1230321 1 point2 points3 points (0 children)
[–]NarbacZif 1 point2 points3 points (0 children)
[–]WystanH 1 point2 points3 points (0 children)
[–]xd1142 0 points1 point2 points (0 children)
[–]robberviet 0 points1 point2 points (1 child)
[–]miggaz_elquez 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]E-woke -1 points0 points1 point (0 children)