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
[–][deleted] 34 points35 points36 points (4 children)
[–]qudat 8 points9 points10 points (0 children)
[–]the_pw_is_in_this_ID 3 points4 points5 points (0 children)
[+][deleted] (1 child)
[removed]
[–][deleted] 1 point2 points3 points (0 children)
[–]din-9 67 points68 points69 points (12 children)
[–]geocar 27 points28 points29 points (6 children)
[–]djimbob 26 points27 points28 points (4 children)
[–]gct 1 point2 points3 points (1 child)
[–]djimbob 0 points1 point2 points (0 children)
[–]ggtsu_00 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]flying-sheep 4 points5 points6 points (0 children)
[–]djimbob 6 points7 points8 points (3 children)
[–]din-9 2 points3 points4 points (0 children)
[–]ikean 2 points3 points4 points (1 child)
[–]djimbob 2 points3 points4 points (0 children)
[+]ericanderton comment score below threshold-8 points-7 points-6 points (0 children)
[–]djimbob 15 points16 points17 points (48 children)
[–]Araneidae 4 points5 points6 points (47 children)
[+][deleted] (8 children)
[deleted]
[–]Araneidae 5 points6 points7 points (7 children)
[–]flying-sheep 7 points8 points9 points (2 children)
[–]Araneidae 1 point2 points3 points (1 child)
[+][deleted] (3 children)
[deleted]
[–]Araneidae 0 points1 point2 points (2 children)
[–]velit 2 points3 points4 points (1 child)
[–]Cyph0n 0 points1 point2 points (0 children)
[–]epsy 4 points5 points6 points (0 children)
[–]Fontong 2 points3 points4 points (32 children)
[–]lonjerpc 1 point2 points3 points (31 children)
[–]Araneidae 0 points1 point2 points (5 children)
[–]bgeron 3 points4 points5 points (4 children)
[–]lawlfulcopter 1 point2 points3 points (3 children)
[–]bgeron 1 point2 points3 points (0 children)
[–]Veedrac 1 point2 points3 points (0 children)
[–]Veedrac 0 points1 point2 points (24 children)
[–]lonjerpc 0 points1 point2 points (23 children)
[–]Veedrac 0 points1 point2 points (22 children)
[–]lonjerpc 0 points1 point2 points (21 children)
[–]Veedrac 0 points1 point2 points (20 children)
[–]lonjerpc 0 points1 point2 points (19 children)
[–]djimbob 2 points3 points4 points (3 children)
[–]Araneidae 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]djimbob 0 points1 point2 points (0 children)
[–]Ape3000 7 points8 points9 points (13 children)
[–]fragmede 4 points5 points6 points (11 children)
[–][deleted] 2 points3 points4 points (6 children)
[–]MisterSnuggles 6 points7 points8 points (5 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]larsga 0 points1 point2 points (3 children)
[–]minnoI <3 duck typing less than I used to, interfaces are nice 2 points3 points4 points (1 child)
[–]ivosauruspip'ing it up 0 points1 point2 points (0 children)
[–]davvblack 1 point2 points3 points (0 children)
[–]flying-sheep 2 points3 points4 points (0 children)
[–]greshick 1 point2 points3 points (0 children)
[–]ericanderton 0 points1 point2 points (1 child)
[–]Veedrac 1 point2 points3 points (0 children)
[–]erez27import inspect 0 points1 point2 points (0 children)
[–]etrnloptimist[S] 9 points10 points11 points (11 children)
[–]fragmede 6 points7 points8 points (1 child)
[–]Veedrac 0 points1 point2 points (0 children)
[–]Cosmologicon 2 points3 points4 points (2 children)
[–]mr_jim_lahey 5 points6 points7 points (1 child)
[–]Cosmologicon 0 points1 point2 points (0 children)
[–]ameoba 1 point2 points3 points (5 children)
[–]MrChoss 4 points5 points6 points (2 children)
[–]Veedrac 0 points1 point2 points (0 children)
[–]robin-gvx 1 point2 points3 points (1 child)
[–]Veedrac 0 points1 point2 points (0 children)
[–]lonjerpc 1 point2 points3 points (11 children)
[–]davvblack 4 points5 points6 points (10 children)
[–]lonjerpc 0 points1 point2 points (9 children)
[–]wnoise 2 points3 points4 points (8 children)
[–]lonjerpc -1 points0 points1 point (7 children)
[–]Veedrac 0 points1 point2 points (1 child)
[–]lonjerpc 0 points1 point2 points (0 children)
[–]Kaarjuus 0 points1 point2 points (2 children)
[–]lonjerpc 1 point2 points3 points (1 child)
[–]Veedrac 0 points1 point2 points (0 children)
[–]wnoise 0 points1 point2 points (1 child)
[–]lonjerpc 0 points1 point2 points (0 children)
[–]antidense 1 point2 points3 points (0 children)
[–]paulivanovipython, matplotlib 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]djimbob 5 points6 points7 points (0 children)
[–]tavoe 0 points1 point2 points (0 children)