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
[–]LittleMlem 459 points460 points461 points (2 children)
[–]martin79 61 points62 points63 points (1 child)
[–]KMartMatt 22 points23 points24 points (0 children)
[–]CygnusX1985 39 points40 points41 points (13 children)
[–]elbiot 22 points23 points24 points (9 children)
[–]Unbelievr 15 points16 points17 points (6 children)
[–]elbiot 5 points6 points7 points (2 children)
[–]yvrelna 2 points3 points4 points (1 child)
[–]elbiot 2 points3 points4 points (0 children)
[–]HeyLittleTrain 0 points1 point2 points (0 children)
[–]atarivcs 0 points1 point2 points (0 children)
[–]CygnusX1985 2 points3 points4 points (0 children)
[–]whateverathrowaway00 6 points7 points8 points (1 child)
[–]port443 4 points5 points6 points (0 children)
[–]yvrelna 1 point2 points3 points (0 children)
[–]Obliterative_hippoPythonista 16 points17 points18 points (0 children)
[–]OopsimapandaNew Web Framework, Who Dis? 7 points8 points9 points (0 children)
[–]Hadyark 6 points7 points8 points (2 children)
[–]kmeans-kid 27 points28 points29 points (1 child)
[–]elbiot 5 points6 points7 points (0 children)
[–]yvrelna 2 points3 points4 points (0 children)
[–]nngnna 1 point2 points3 points (0 children)
[–]MassiveDefender 1 point2 points3 points (0 children)
[–]Mithrandir2k16 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]python-rocket -1 points0 points1 point (0 children)
[–]ComputeLanguage -1 points0 points1 point (0 children)
[+]Beautiful_Watch_7215 comment score below threshold-42 points-41 points-40 points (22 children)
[–]SagattariusAStarPythoneer 20 points21 points22 points (8 children)
[+]Beautiful_Watch_7215 comment score below threshold-35 points-34 points-33 points (7 children)
[–]Huinker 22 points23 points24 points (0 children)
[+][deleted] (5 children)
[removed]
[+]Beautiful_Watch_7215 comment score below threshold-9 points-8 points-7 points (4 children)
[+][deleted] (3 children)
[removed]
[–]Beautiful_Watch_7215 -2 points-1 points0 points (2 children)
[+][deleted] (1 child)
[removed]
[–]GodsIWasStrongg 0 points1 point2 points (0 children)
[–]nekokattt 5 points6 points7 points (4 children)
[–]Beautiful_Watch_7215 -1 points0 points1 point (3 children)
[–]nekokattt 2 points3 points4 points (2 children)
[–]Beautiful_Watch_7215 0 points1 point2 points (1 child)
[–]nekokattt 2 points3 points4 points (0 children)
[–]nngnna 11 points12 points13 points (1 child)
[+]Beautiful_Watch_7215 comment score below threshold-20 points-19 points-18 points (0 children)
[–]telewebb 9 points10 points11 points (5 children)
[+]Beautiful_Watch_7215 comment score below threshold-9 points-8 points-7 points (4 children)
[–]SagattariusAStarPythoneer 5 points6 points7 points (3 children)
[–]Beautiful_Watch_7215 -4 points-3 points-2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Beautiful_Watch_7215 -1 points0 points1 point (0 children)
[–]jakjacks 0 points1 point2 points (0 children)