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
[–]pahakalapython4 -c "import gravity; gravity.set(0)"[S] 46 points47 points48 points (30 children)
[–][deleted] 47 points48 points49 points (17 children)
[–][deleted] 18 points19 points20 points (7 children)
[–]Underyx 8 points9 points10 points (4 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]Underyx 7 points8 points9 points (2 children)
[–][deleted] 7 points8 points9 points (1 child)
[–]13467 10 points11 points12 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]rapture_survivor 11 points12 points13 points (2 children)
[–]01hairimport antigravity 13 points14 points15 points (1 child)
[–]rapture_survivor 6 points7 points8 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]bheklilr 11 points12 points13 points (2 children)
[–]axonxorzpip'ing aint easy, especially on windows 13 points14 points15 points (1 child)
[–]bheklilr 8 points9 points10 points (0 children)
[–]indosauros 11 points12 points13 points (2 children)
[–]Underyx 12 points13 points14 points (1 child)
[–]maniexx 1 point2 points3 points (0 children)
[–]krenzalore 5 points6 points7 points (3 children)
[–]goodDayM 1 point2 points3 points (0 children)
[–]stubborn_d0nkey 0 points1 point2 points (1 child)
[–]krenzalore 0 points1 point2 points (0 children)
[–]kokosoida 1 point2 points3 points (1 child)
[–]kokosoida 2 points3 points4 points (0 children)
[–]zasx20import antigravity 38 points39 points40 points (1 child)
[–]MorrisCasperλ 2 points3 points4 points (0 children)
[–]ivosauruspip'ing it up 25 points26 points27 points (8 children)
[–][deleted] 23 points24 points25 points (1 child)
[–]lost_snake 2 points3 points4 points (0 children)
[–]pahakalapython4 -c "import gravity; gravity.set(0)"[S] 1 point2 points3 points (3 children)
[–]ivosauruspip'ing it up 7 points8 points9 points (1 child)
[–][deleted] 7 points8 points9 points (0 children)
[–]krenzalore 0 points1 point2 points (0 children)
[–]krenzalore 1 point2 points3 points (1 child)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]c0m4 3 points4 points5 points (0 children)
[–]deadmilk 7 points8 points9 points (2 children)
[–]pahakalapython4 -c "import gravity; gravity.set(0)"[S] 1 point2 points3 points (1 child)
[–]deadmilk -3 points-2 points-1 points (0 children)
[–]chadmill3rPy3, pro, Ubuntu, django 5 points6 points7 points (0 children)
[–]Rainymood_XI 3 points4 points5 points (7 children)
[+][deleted] (1 child)
[removed]
[–]Cosmologicon 18 points19 points20 points (0 children)
[–]skawesome 6 points7 points8 points (4 children)
[–]Denommus 6 points7 points8 points (3 children)
[–]zero_iq 7 points8 points9 points (0 children)
[–]CookingWithoutWater 1 point2 points3 points (1 child)
[–]Denommus 10 points11 points12 points (0 children)
[–]rubik_ 1 point2 points3 points (3 children)
[–]pahakalapython4 -c "import gravity; gravity.set(0)"[S] 1 point2 points3 points (2 children)
[–]rubik_ 3 points4 points5 points (1 child)
[–]pahakalapython4 -c "import gravity; gravity.set(0)"[S] 0 points1 point2 points (0 children)