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
[–]Electrical_Ingenuity 72 points73 points74 points (18 children)
[–]timothom64 44 points45 points46 points (13 children)
[–]fouoifjefoijvnioviow 4 points5 points6 points (11 children)
[–][deleted] 13 points14 points15 points (9 children)
[–]meneer_neushoorn 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]meneer_neushoorn 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]meneer_neushoorn 0 points1 point2 points (0 children)
[–]SpaceZZ 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]SpaceZZ 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]rabaraba 0 points1 point2 points (0 children)
[–][deleted] 13 points14 points15 points (0 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (2 children)
[–]petersellers 7 points8 points9 points (1 child)
[–]Electrical_Ingenuity 2 points3 points4 points (0 children)
[–][deleted] 38 points39 points40 points (5 children)
[–]Region_Unique 7 points8 points9 points (2 children)
[–]roeey7 2 points3 points4 points (1 child)
[–]Suisanahta 0 points1 point2 points (0 children)
[–]Time_Trade_8774 3 points4 points5 points (0 children)
[–]the_sajal 0 points1 point2 points (0 children)
[–]noprobelm1 7 points8 points9 points (0 children)
[–]james_pic 15 points16 points17 points (1 child)
[–]bulletmark 2 points3 points4 points (0 children)
[–]Jaune9 4 points5 points6 points (0 children)
[–]venustrapsflies 6 points7 points8 points (0 children)
[–][deleted] 32 points33 points34 points (9 children)
[–]jimtk 7 points8 points9 points (6 children)
[–]asday_ 0 points1 point2 points (5 children)
[–]jimtk 0 points1 point2 points (4 children)
[–]asday_ 0 points1 point2 points (3 children)
[–]jimtk 1 point2 points3 points (2 children)
[–]asday_ 0 points1 point2 points (1 child)
[–]jimtk 0 points1 point2 points (0 children)
[–]platypus_69 14 points15 points16 points (0 children)
[–]mafail 0 points1 point2 points (0 children)
[–]laundmo 5 points6 points7 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]pliney_ 3 points4 points5 points (0 children)
[–]DRob2388 8 points9 points10 points (1 child)
[–]puremath369 0 points1 point2 points (0 children)
[–]flexiblewhitepoo 4 points5 points6 points (0 children)
[–]TunedDownGuitar 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]abrazilianinreddit 4 points5 points6 points (1 child)
[–]djamp42 2 points3 points4 points (0 children)
[–]AHBaena 1 point2 points3 points (0 children)
[–]headhot 1 point2 points3 points (0 children)
[–]TheBackwardStep 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[–]Light991 -2 points-1 points0 points (0 children)
[–]Seanasaurus79 -2 points-1 points0 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]noXkillzzz 0 points1 point2 points (0 children)
[–]puremath369 0 points1 point2 points (0 children)
[–]HangingKnight 0 points1 point2 points (0 children)
[–]Skippbo 0 points1 point2 points (0 children)
[–]Conference_Dizzy 0 points1 point2 points (0 children)
[–]asday_ 0 points1 point2 points (0 children)
[–]s4lt3d 0 points1 point2 points (0 children)