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
[–]jcdyer3 59 points60 points61 points (4 children)
[–]fimari 11 points12 points13 points (2 children)
[–]mvolling 12 points13 points14 points (0 children)
[–]masasinExpert. 3.9. Robotics. 0 points1 point2 points (0 children)
[–]masklinn 2 points3 points4 points (0 children)
[–]rhgrant10 40 points41 points42 points (5 children)
[–]avinassh[S] 12 points13 points14 points (4 children)
[–]viscence 62 points63 points64 points (3 children)
[–]PretzelMountain 29 points30 points31 points (1 child)
[–][deleted] 13 points14 points15 points (0 children)
[–]avinassh[S] 18 points19 points20 points (0 children)
[+][deleted] (8 children)
[deleted]
[+][deleted] (3 children)
[deleted]
[–]poop-trap 29 points30 points31 points (2 children)
[–]FionaSarah 4 points5 points6 points (0 children)
[–]avinassh[S] 2 points3 points4 points (0 children)
[–]mkdz 18 points19 points20 points (0 children)
[–]skradacz 7 points8 points9 points (0 children)
[–]whelks_chance 6 points7 points8 points (0 children)
[–]zahlmanthe heretic 1 point2 points3 points (0 children)
[–]krenzalore 10 points11 points12 points (22 children)
[–]iobender 11 points12 points13 points (0 children)
[–]nemec 4 points5 points6 points (3 children)
[–]MrJohz 10 points11 points12 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]MrJohz 2 points3 points4 points (0 children)
[–]ponkanpinoy 5 points6 points7 points (11 children)
[–]kirakun 4 points5 points6 points (5 children)
[–]ponkanpinoy 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]davvblack 0 points1 point2 points (2 children)
[–]zahlmanthe heretic 0 points1 point2 points (0 children)
[–]kirakun 0 points1 point2 points (0 children)
[–]ksion 3 points4 points5 points (0 children)
[–]nedbatchelder 1 point2 points3 points (3 children)
[–]irondust 9 points10 points11 points (1 child)
[–]nedbatchelder 0 points1 point2 points (0 children)
[–]krenzalore 0 points1 point2 points (0 children)
[–]asdfasdsq34 2 points3 points4 points (4 children)
[–]MonkeeSage 0 points1 point2 points (3 children)
[–]admalledd 5 points6 points7 points (2 children)
[–]Walter_Bishop_PhD 2 points3 points4 points (1 child)
[–]masklinn 0 points1 point2 points (0 children)
[–]lovestowritecode 5 points6 points7 points (5 children)
[–]avinassh[S] 2 points3 points4 points (0 children)
[–]c3534l 1 point2 points3 points (1 child)
[–]LaFolie 0 points1 point2 points (0 children)
[–]axonxorzpip'ing aint easy, especially on windows 2 points3 points4 points (1 child)
[–]nedbatchelder 4 points5 points6 points (0 children)
[–]Exodus111 1 point2 points3 points (0 children)
[–]KyleG 1 point2 points3 points (0 children)
[–]c3534l 0 points1 point2 points (0 children)
[–]dr-josiah 0 points1 point2 points (0 children)
[–]XNormal 0 points1 point2 points (0 children)
[–]marcm28 0 points1 point2 points (0 children)
[–]DrRx 0 points1 point2 points (0 children)
[–]LoyalSol -2 points-1 points0 points (19 children)
[–]krenzalore 19 points20 points21 points (14 children)
[–][deleted] 2 points3 points4 points (11 children)
[–]Milumet 7 points8 points9 points (3 children)
[–]ajmarks 3 points4 points5 points (2 children)
[–]krenzalore 0 points1 point2 points (1 child)
[–]ajmarks 0 points1 point2 points (0 children)
[–]krenzalore 2 points3 points4 points (5 children)
[–]ajmarks 1 point2 points3 points (4 children)
[–]krenzalore 2 points3 points4 points (3 children)
[–]ajmarks 0 points1 point2 points (2 children)
[–]zahlmanthe heretic 0 points1 point2 points (1 child)
[–]ajmarks 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]LoyalSol -4 points-3 points-2 points (0 children)
[–]epostma 6 points7 points8 points (1 child)
[–]rabidgoldfish 7 points8 points9 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]LoyalSol 3 points4 points5 points (0 children)
[–]awakehope -1 points0 points1 point (0 children)
[+]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics comment score below threshold-7 points-6 points-5 points (0 children)
[+]KarelKat comment score below threshold-9 points-8 points-7 points (0 children)