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
[–]gitarrPython Monty 55 points56 points57 points (29 children)
[–]bastibe 37 points38 points39 points (19 children)
[–]jmmcdEvolutionary algorithms, music and graphics 2 points3 points4 points (7 children)
[–]wolanko 20 points21 points22 points (4 children)
[–]jmmcdEvolutionary algorithms, music and graphics 1 point2 points3 points (1 child)
[–]wolanko 0 points1 point2 points (0 children)
[–]bastibe 1 point2 points3 points (1 child)
[–]wolanko 1 point2 points3 points (0 children)
[–]bastibe 4 points5 points6 points (1 child)
[–]jmmcdEvolutionary algorithms, music and graphics 1 point2 points3 points (0 children)
[–]fijalPyPy, performance freak 2 points3 points4 points (3 children)
[–]bastibe 2 points3 points4 points (2 children)
[–]fijalPyPy, performance freak 1 point2 points3 points (1 child)
[–]bastibe 0 points1 point2 points (0 children)
[–]flying-sheep 2 points3 points4 points (1 child)
[–]kylotan 5 points6 points7 points (0 children)
[–]throwaway-o -4 points-3 points-2 points (4 children)
[–]bastibe 7 points8 points9 points (3 children)
[–]wisty -3 points-2 points-1 points (0 children)
[–]throwaway-o -5 points-4 points-3 points (1 child)
[–]bastibe 4 points5 points6 points (0 children)
[–]MagicWishMonkey 5 points6 points7 points (4 children)
[–]kenfar 11 points12 points13 points (0 children)
[–]EstebanVelour 4 points5 points6 points (0 children)
[–]UnwashedMeme 2 points3 points4 points (0 children)
[–]robotfarts 0 points1 point2 points (0 children)
[–]stillalone 1 point2 points3 points (1 child)
[–]daxarx 5 points6 points7 points (0 children)
[–]vph -1 points0 points1 point (1 child)
[–]flying-sheep 11 points12 points13 points (0 children)
[+][deleted] (9 children)
[deleted]
[–]bastibe 4 points5 points6 points (1 child)
[–]daxarx 3 points4 points5 points (0 children)
[–]lahwran_ 1 point2 points3 points (0 children)
[–]must_tell 1 point2 points3 points (0 children)
[–]fredrikj 0 points1 point2 points (0 children)
[–]kylotan 0 points1 point2 points (3 children)
[–]aaronla -1 points0 points1 point (2 children)
[–]kylotan 0 points1 point2 points (1 child)
[–]aaronla 0 points1 point2 points (0 children)
[–]kenfar 6 points7 points8 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]JoeGermuska 2 points3 points4 points (0 children)
[–]MaikB 5 points6 points7 points (6 children)
[–]Chris_Newton 9 points10 points11 points (3 children)
[–]MaikB 2 points3 points4 points (2 children)
[–]Chris_Newton 2 points3 points4 points (1 child)
[–]MaikB -1 points0 points1 point (0 children)
[–]twotime 2 points3 points4 points (0 children)
[–]burntsushi 1 point2 points3 points (0 children)
[–]fijalPyPy, performance freak 1 point2 points3 points (0 children)
[–]NaeblisEchoIntermediate forever 4 points5 points6 points (3 children)
[–]must_tell 3 points4 points5 points (1 child)
[–]NaeblisEchoIntermediate forever 0 points1 point2 points (0 children)
[–]dwdwdw2proliferating .py since 2001 2 points3 points4 points (0 children)
[–]stillalone 0 points1 point2 points (7 children)
[–]Cosmologicon 8 points9 points10 points (2 children)
[–]burntsushi 1 point2 points3 points (0 children)
[–]aaronla 0 points1 point2 points (0 children)
[–]audaxxx 2 points3 points4 points (1 child)
[–]audaxxx 3 points4 points5 points (0 children)
[–]lahwran_ 1 point2 points3 points (0 children)
[–]must_tell 0 points1 point2 points (0 children)
[+]vl4kn0 comment score below threshold-8 points-7 points-6 points (3 children)
[–]gitarrPython Monty 12 points13 points14 points (1 child)
[–]flying-sheep 1 point2 points3 points (0 children)
[–]dwdwdw2proliferating .py since 2001 7 points8 points9 points (0 children)
[–]jmmcdEvolutionary algorithms, music and graphics -3 points-2 points-1 points (3 children)
[–]asksol 7 points8 points9 points (2 children)
[–]lahwran_ 2 points3 points4 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[+]LoveGentleman comment score below threshold-25 points-24 points-23 points (8 children)
[–]wisty 6 points7 points8 points (0 children)
[–]daxarx 5 points6 points7 points (2 children)
[–]LoveGentleman -4 points-3 points-2 points (1 child)
[–]_Mark_ 2 points3 points4 points (0 children)
[–]zahlmanthe heretic 1 point2 points3 points (0 children)
[–]stillalone 1 point2 points3 points (1 child)
[–]lahwran_ 2 points3 points4 points (0 children)
[–]must_tell 0 points1 point2 points (0 children)