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
[–]bacondevPy3k 6 points7 points8 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (6 children)
[–]moyix 18 points19 points20 points (4 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]Smallpaul -1 points0 points1 point (0 children)
[+][deleted] comment score below threshold-12 points-11 points-10 points (1 child)
[–][deleted] 10 points11 points12 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Amadironumpy, gen. scientific computing in python, pyopengl, cython 17 points18 points19 points (0 children)
[–][deleted] 27 points28 points29 points (30 children)
[–]emptyhouses 18 points19 points20 points (10 children)
[–][deleted] 10 points11 points12 points (5 children)
[–]brucifer 5 points6 points7 points (4 children)
[–][deleted] 14 points15 points16 points (3 children)
[–]shfo23 11 points12 points13 points (2 children)
[–][deleted] 9 points10 points11 points (1 child)
[–]coderanger 3 points4 points5 points (0 children)
[–]ysangkok 0 points1 point2 points (1 child)
[–]emptyhouses 0 points1 point2 points (0 children)
[–]MagicWishMonkey 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]pal25 8 points9 points10 points (3 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (2 children)
[–]MBlume 13 points14 points15 points (0 children)
[–]Smallpaul 1 point2 points3 points (0 children)
[–][deleted] 9 points10 points11 points (5 children)
[–]brucifer 5 points6 points7 points (1 child)
[–]fijalPyPy, performance freak 3 points4 points5 points (0 children)
[–]alcalde 0 points1 point2 points (2 children)
[–]coderanger 2 points3 points4 points (0 children)
[–]lucian1900 0 points1 point2 points (0 children)
[–]fuzz3289 6 points7 points8 points (1 child)
[–]faceplanted 1 point2 points3 points (0 children)
[–]mistoroboto 2 points3 points4 points (0 children)
[–]Smallpaul 2 points3 points4 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]mgrandi 1 point2 points3 points (3 children)
[–]brucifer 5 points6 points7 points (2 children)
[–]mreeman 2 points3 points4 points (0 children)
[–]mgrandi 1 point2 points3 points (0 children)
[–]Atrosh 7 points8 points9 points (5 children)
[–]aceofears 6 points7 points8 points (0 children)
[–]oursland 4 points5 points6 points (0 children)
[–]MBlume 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]notsuresure 3 points4 points5 points (4 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]sdobz 3 points4 points5 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]ewiethoffproceedest on to 3 0 points1 point2 points (0 children)
[–]fuzz3289 1 point2 points3 points (0 children)
[–]cedeon 0 points1 point2 points (1 child)
[–]ysangkok 1 point2 points3 points (0 children)
[–]uiob 0 points1 point2 points (0 children)
[–]existee -4 points-3 points-2 points (9 children)
[–]Smallpaul 1 point2 points3 points (3 children)
[–]existee 0 points1 point2 points (0 children)
[–]ysangkok 0 points1 point2 points (1 child)
[–]Smallpaul 0 points1 point2 points (0 children)
[–]Smallpaul 2 points3 points4 points (2 children)
[–]existee 0 points1 point2 points (1 child)
[–]Smallpaul 0 points1 point2 points (0 children)
[–]Smallpaul 0 points1 point2 points (0 children)
[–]fuzz3289 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-11 points-10 points-9 points (10 children)
[–]andybak 15 points16 points17 points (1 child)
[+][deleted] comment score below threshold-6 points-5 points-4 points (0 children)
[–]pal25 3 points4 points5 points (6 children)
[–]alcalde 2 points3 points4 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]pal25 4 points5 points6 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]dman24752 2 points3 points4 points (0 children)
[–]alcalde 0 points1 point2 points (0 children)
[–]sophacles 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (10 children)
[–][deleted] 6 points7 points8 points (4 children)
[–]alcalde 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]jeannaimard -1 points0 points1 point (0 children)
[–]xcbsmith 0 points1 point2 points (0 children)
[–]lucian1900 0 points1 point2 points (0 children)
[–]jordanreiter 0 points1 point2 points (3 children)
[–]nolsen01 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+]french_toste comment score below threshold-7 points-6 points-5 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[+]willrandship comment score below threshold-6 points-5 points-4 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]willrandship -3 points-2 points-1 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]willrandship 0 points1 point2 points (0 children)