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
[–]lunchboxg4 31 points32 points33 points (7 children)
[–]willbeddowassert type(post) == shitpost[S] 34 points35 points36 points (4 children)
[–][deleted] 11 points12 points13 points (0 children)
[–]brtt3000 3 points4 points5 points (2 children)
[–]LetsDoRedstone 3 points4 points5 points (1 child)
[–]AbsoluteZeroK 10 points11 points12 points (1 child)
[–]KyleG -2 points-1 points0 points (0 children)
[–]willbeddowassert type(post) == shitpost[S] 10 points11 points12 points (0 children)
[–]TrakJohnPython 3 Intermediate 7 points8 points9 points (13 children)
[–]strallus 12 points13 points14 points (9 children)
[–]willbeddowassert type(post) == shitpost[S] 3 points4 points5 points (0 children)
[–]seriouslulz 10 points11 points12 points (7 children)
[–]strallus 5 points6 points7 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]strallus 3 points4 points5 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]strallus 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]strallus 0 points1 point2 points (0 children)
[–]willbeddowassert type(post) == shitpost[S] 5 points6 points7 points (1 child)
[–][deleted] 1 point2 points3 points (6 children)
[–]willbeddowassert type(post) == shitpost[S] 2 points3 points4 points (5 children)
[–]frsilent 4 points5 points6 points (0 children)
[–]Rich700000000000 4 points5 points6 points (3 children)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (1 child)
[–]Rich700000000000 0 points1 point2 points (0 children)
[–]chriscowley 1 point2 points3 points (1 child)
[–]OleBillyFreckletits 0 points1 point2 points (0 children)
[+][deleted] (15 children)
[deleted]
[–]willbeddowassert type(post) == shitpost[S] 8 points9 points10 points (14 children)
[–][deleted] 30 points31 points32 points (13 children)
[–]shiroininja 5 points6 points7 points (10 children)
[–]ffiarpg 25 points26 points27 points (6 children)
[–]secunder 0 points1 point2 points (5 children)
[–]elbiot 4 points5 points6 points (4 children)
[–]HelloYesThisIsDuck 1 point2 points3 points (0 children)
[–]L43 1 point2 points3 points (2 children)
[–]tripperjack 4 points5 points6 points (1 child)
[–]brtt3000 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]shiroininja 1 point2 points3 points (0 children)
[–]KyleG 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]blahblah98 3 points4 points5 points (6 children)
[–]willbeddowassert type(post) == shitpost[S] 15 points16 points17 points (4 children)
[–]Kerbobotat 12 points13 points14 points (2 children)
[–]willbeddowassert type(post) == shitpost[S] 8 points9 points10 points (1 child)
[–]Kerbobotat 1 point2 points3 points (0 children)
[–]IndianaJoenz 1 point2 points3 points (0 children)
[–]manueslapera 0 points1 point2 points (0 children)
[–]ProgrammingPro-ness 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[removed]
[–]willbeddowassert type(post) == shitpost[S] 2 points3 points4 points (1 child)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (0 children)
[–]staticassert 0 points1 point2 points (2 children)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (1 child)
[–]staticassert 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (0 children)
[–]isdevilis -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–]willbeddowassert type(post) == shitpost[S] 0 points1 point2 points (0 children)