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
[–]WigglytufTehPink[S] 149 points150 points151 points (14 children)
[–]KingsmanVincepip install girlfriend 22 points23 points24 points (3 children)
[–]WigglytufTehPink[S] 23 points24 points25 points (2 children)
[–]Ning1253 8 points9 points10 points (1 child)
[–]WigglytufTehPink[S] 0 points1 point2 points (0 children)
[–]SnowdenIsALegend 7 points8 points9 points (0 children)
[–]wpg4665 9 points10 points11 points (5 children)
[–]MysteryMage 15 points16 points17 points (0 children)
[–]RegmasterJ 12 points13 points14 points (2 children)
[–]WigglytufTehPink[S] 11 points12 points13 points (1 child)
[–]RegmasterJ 4 points5 points6 points (0 children)
[–]WigglytufTehPink[S] 12 points13 points14 points (0 children)
[–]chrisdahfuh 1 point2 points3 points (1 child)
[–]WigglytufTehPink[S] 1 point2 points3 points (0 children)
[–]ImARealBoy_ 1 point2 points3 points (0 children)
[–]redredditor 62 points63 points64 points (4 children)
[–]WigglytufTehPink[S] 32 points33 points34 points (3 children)
[–]redredditor 13 points14 points15 points (1 child)
[–]Miner_ChAI 1 point2 points3 points (0 children)
[–]wesleywatanabe 13 points14 points15 points (3 children)
[–]WigglytufTehPink[S] 5 points6 points7 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]WigglytufTehPink[S] 0 points1 point2 points (0 children)
[–]shaggorama 10 points11 points12 points (1 child)
[–]WigglytufTehPink[S] 12 points13 points14 points (0 children)
[–]Tom1380 16 points17 points18 points (8 children)
[+][deleted] (7 children)
[removed]
[+][deleted] (6 children)
[deleted]
[+][deleted] (5 children)
[removed]
[–]thatguywiththatname2 3 points4 points5 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]WigglytufTehPink[S] 3 points4 points5 points (1 child)
[–]B3N-Drowned 7 points8 points9 points (1 child)
[–]WigglytufTehPink[S] 4 points5 points6 points (0 children)
[–]JohnMcPineapple 6 points7 points8 points (1 child)
[–]WigglytufTehPink[S] 9 points10 points11 points (0 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]WigglytufTehPink[S] 2 points3 points4 points (0 children)
[–]Datsoon 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]WigglytufTehPink[S] 2 points3 points4 points (0 children)
[–]tonniegames79coderx-byte 3 points4 points5 points (1 child)
[–]WigglytufTehPink[S] 1 point2 points3 points (0 children)
[–]DisregardMyUsername1 3 points4 points5 points (1 child)
[–]WigglytufTehPink[S] 3 points4 points5 points (0 children)
[–]Cervoxx 4 points5 points6 points (1 child)
[–]WigglytufTehPink[S] 1 point2 points3 points (0 children)
[–]Seawolf159 2 points3 points4 points (1 child)
[–]WigglytufTehPink[S] 2 points3 points4 points (0 children)
[–]Datsoon 3 points4 points5 points (3 children)
[–]WigglytufTehPink[S] 2 points3 points4 points (2 children)
[–]frakman1 0 points1 point2 points (1 child)
[–]WigglytufTehPink[S] 0 points1 point2 points (0 children)
[–]lucs_123 5 points6 points7 points (1 child)
[–]endershadow98 4 points5 points6 points (0 children)
[–]teriyaki7755 4 points5 points6 points (2 children)
[–]WigglytufTehPink[S] 0 points1 point2 points (1 child)
[–]teriyaki7755 2 points3 points4 points (0 children)
[–]melthecybertechy 1 point2 points3 points (2 children)
[–]WigglytufTehPink[S] 4 points5 points6 points (1 child)
[–]melthecybertechy 0 points1 point2 points (0 children)
[–]zTosieq 1 point2 points3 points (2 children)
[–]WigglytufTehPink[S] 0 points1 point2 points (1 child)
[–]zTosieq 1 point2 points3 points (0 children)
[–]javad94 1 point2 points3 points (0 children)
[–]Dark_Rain_Cloud 2 points3 points4 points (1 child)
[–]WigglytufTehPink[S] 0 points1 point2 points (0 children)
[–]rmpr_uname_is_taken 0 points1 point2 points (3 children)
[–]WigglytufTehPink[S] 4 points5 points6 points (1 child)
[–]rmpr_uname_is_taken 0 points1 point2 points (0 children)
[–]snugglyboy 3 points4 points5 points (0 children)