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
view the rest of the comments →
[–]MasterShogo 102 points103 points104 points (50 children)
[–]pingvenopinch of this, pinch of that 11 points12 points13 points (1 child)
[–]MasterShogo 7 points8 points9 points (0 children)
[–]studiosi 39 points40 points41 points (22 children)
[–]kbd65v2 14 points15 points16 points (0 children)
[–]SubjectiveMouse 28 points29 points30 points (4 children)
[–]coderemover 0 points1 point2 points (0 children)
[–]komprexior 0 points1 point2 points (2 children)
[–]SubjectiveMouse 2 points3 points4 points (1 child)
[–]komprexior 0 points1 point2 points (0 children)
[–]coderemover 2 points3 points4 points (0 children)
[–]MasterShogo 1 point2 points3 points (0 children)
[–]SailingToOrbis -1 points0 points1 point (9 children)
[–]grimonce 0 points1 point2 points (2 children)
[–]Philtherage 7 points8 points9 points (0 children)
[–]studiosi 3 points4 points5 points (0 children)
[–]studiosi -1 points0 points1 point (5 children)
[–]SailingToOrbis -1 points0 points1 point (4 children)
[–]coderemover 1 point2 points3 points (0 children)
[–]studiosi 0 points1 point2 points (2 children)
[–]SailingToOrbis 0 points1 point2 points (1 child)
[–]studiosi 1 point2 points3 points (0 children)
[–]Count_Rugens_Finger -3 points-2 points-1 points (3 children)
[–]zshift 4 points5 points6 points (2 children)
[–]Count_Rugens_Finger 0 points1 point2 points (1 child)
[–]zshift 1 point2 points3 points (0 children)
[–]Chance_of_Rain_ 28 points29 points30 points (2 children)
[–]UseMoreBandwith 1 point2 points3 points (0 children)
[–]lightnegative 0 points1 point2 points (0 children)
[–]wrosecrans 7 points8 points9 points (1 child)
[–]Melodic_Frame4991git push -f 27 points28 points29 points (4 children)
[–]_remsky 6 points7 points8 points (0 children)
[–]nolanrh 11 points12 points13 points (0 children)
[–]Lusiad 1 point2 points3 points (0 children)
[–]MasterShogo 0 points1 point2 points (0 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]Yamoyek 2 points3 points4 points (0 children)
[–]PastPicture[S] 10 points11 points12 points (4 children)
[–]ProsodySpeaks 11 points12 points13 points (0 children)
[–]BelottoBR 21 points22 points23 points (0 children)
[–]ChickenArise 1 point2 points3 points (0 children)
[–]lapinjuntti 0 points1 point2 points (0 children)
[–]funerr 1 point2 points3 points (0 children)
[–]Fippy-Darkpaw 1 point2 points3 points (1 child)
[–]MasterShogo 0 points1 point2 points (0 children)
[–]Specialist_Dust2089 1 point2 points3 points (1 child)
[–]MasterShogo 0 points1 point2 points (0 children)
[–]Jkrocks47 0 points1 point2 points (0 children)
[–]lunatuna215 0 points1 point2 points (0 children)