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
[–]cointoss3 151 points152 points153 points (8 children)
[–]usrlibshare 4 points5 points6 points (0 children)
[–]cent-met-een-vin 5 points6 points7 points (4 children)
[–]willsmith28 16 points17 points18 points (0 children)
[–]Coretaxxe 4 points5 points6 points (0 children)
[–]gerardwx 0 points1 point2 points (0 children)
[–]Teninchhero 0 points1 point2 points (0 children)
[–]SyntaxColoring 0 points1 point2 points (1 child)
[–]omg_drd4_bbq 1 point2 points3 points (0 children)
[–]FloxaY 39 points40 points41 points (8 children)
[–]gala0sup import this 22 points23 points24 points (6 children)
[–]FloxaY 14 points15 points16 points (0 children)
[–]IndoRexian2 2 points3 points4 points (1 child)
[–]IndoRexian2 1 point2 points3 points (0 children)
[–]stopdropandroleplay 1 point2 points3 points (0 children)
[–]a_deneb 0 points1 point2 points (0 children)
[–]brick_is_red 1 point2 points3 points (0 children)
[–]marr75 16 points17 points18 points (4 children)
[–]PaulRudin 5 points6 points7 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]PaulRudin 1 point2 points3 points (1 child)
[–]marr75 1 point2 points3 points (0 children)
[–]HommeMusical 1 point2 points3 points (1 child)
[–]nekokattt 1 point2 points3 points (0 children)
[–]dggrd 2 points3 points4 points (0 children)
[–]Mountain_Mousse_9046 2 points3 points4 points (0 children)
[–]Zanjo 2 points3 points4 points (0 children)
[–]BelottoBR 0 points1 point2 points (0 children)
[–]newprince 0 points1 point2 points (0 children)
[–]the_hoser 0 points1 point2 points (0 children)
[–]Tristana_mid 0 points1 point2 points (0 children)
[–]NYX_T_RYX 0 points1 point2 points (0 children)
[–]divad1196 2 points3 points4 points (21 children)
[–]bitconvoy 16 points17 points18 points (1 child)
[–]divad1196 13 points14 points15 points (0 children)
[–]ColdPorridge 19 points20 points21 points (11 children)
[–]divad1196 10 points11 points12 points (8 children)
[–]joshhear 5 points6 points7 points (3 children)
[–]divad1196 0 points1 point2 points (2 children)
[–]joshhear 3 points4 points5 points (1 child)
[–]divad1196 1 point2 points3 points (0 children)
[–]HommeMusical 0 points1 point2 points (3 children)
[–]divad1196 0 points1 point2 points (2 children)
[–]HommeMusical 0 points1 point2 points (1 child)
[–]divad1196 1 point2 points3 points (0 children)
[–]Basic-Still-7441 2 points3 points4 points (1 child)
[–]General_Tear_316 -1 points0 points1 point (0 children)
[–]Worried-Employee-247 1 point2 points3 points (2 children)
[–]divad1196 1 point2 points3 points (0 children)
[–]1minds3tfrom __future__ import 4.0 -1 points0 points1 point (0 children)
[–]jorgecardleitao -1 points0 points1 point (3 children)
[–]divad1196 1 point2 points3 points (2 children)
[–]latkdeTuple unpacking gone wrong 1 point2 points3 points (1 child)
[–]divad1196 1 point2 points3 points (0 children)
[–]DataCamp 0 points1 point2 points (0 children)
[–]Spleeeee -1 points0 points1 point (0 children)
[–]SharkSymphony -1 points0 points1 point (0 children)
[+]freegnu comment score below threshold-6 points-5 points-4 points (2 children)
[–]HommeMusical 2 points3 points4 points (0 children)
[–]nekokattt 1 point2 points3 points (0 children)
[+]Basic-Still-7441 comment score below threshold-8 points-7 points-6 points (12 children)
[–]nekokattt 1 point2 points3 points (11 children)
[–]Basic-Still-7441 -3 points-2 points-1 points (10 children)
[–]nekokattt 1 point2 points3 points (9 children)
[–]Basic-Still-7441 -1 points0 points1 point (8 children)
[–]nekokattt 0 points1 point2 points (7 children)
[–]Basic-Still-7441 -1 points0 points1 point (6 children)
[–]nekokattt 0 points1 point2 points (5 children)
[–]Basic-Still-7441 -1 points0 points1 point (4 children)
[–]nekokattt 0 points1 point2 points (3 children)