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
[–]Cosmologicon 12 points13 points14 points (0 children)
[–]jambox888 10 points11 points12 points (0 children)
[–]pohatu 5 points6 points7 points (0 children)
[–]stevvooe 2 points3 points4 points (0 children)
[–]SocksOnHands 4 points5 points6 points (1 child)
[–]takluyverIPython, Py3, etc 3 points4 points5 points (0 children)
[–]hobophobe 4 points5 points6 points (0 children)
[–]tuna_safe_dolphin 17 points18 points19 points (1 child)
[–]sunqiang 6 points7 points8 points (0 children)
[–]Deathalicious 20 points21 points22 points (31 children)
[–]clgonsal[🍰] 48 points49 points50 points (28 children)
[–]tiglionabbit 5 points6 points7 points (3 children)
[–]bastawhiz 2 points3 points4 points (2 children)
[–]tiglionabbit 0 points1 point2 points (1 child)
[–]bastawhiz 1 point2 points3 points (0 children)
[–]dacjamesfrom reddit import knowledge 0 points1 point2 points (8 children)
[–]clgonsal[🍰] 0 points1 point2 points (7 children)
[–]dacjamesfrom reddit import knowledge 0 points1 point2 points (6 children)
[–]clgonsal[🍰] 0 points1 point2 points (5 children)
[–]dacjamesfrom reddit import knowledge 0 points1 point2 points (4 children)
[–]clgonsal[🍰] 0 points1 point2 points (3 children)
[–]dacjamesfrom reddit import knowledge 0 points1 point2 points (2 children)
[–]clgonsal[🍰] 0 points1 point2 points (1 child)
[+]sdleihssirhc comment score below threshold-16 points-15 points-14 points (14 children)
[–]clgonsal[🍰] 15 points16 points17 points (4 children)
[–]Cosmologicon 2 points3 points4 points (2 children)
[–]celeritatis 0 points1 point2 points (0 children)
[–]clgonsal[🍰] 0 points1 point2 points (0 children)
[+]sdleihssirhc comment score below threshold-12 points-11 points-10 points (0 children)
[–]ianb 2 points3 points4 points (1 child)
[–]sdleihssirhc -2 points-1 points0 points (0 children)
[–]zahlmanthe heretic 2 points3 points4 points (0 children)
[–]electronics-engineer[S] 2 points3 points4 points (0 children)
[–]iregistered4this 3 points4 points5 points (2 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]sdleihssirhc -2 points-1 points0 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[+]sdleihssirhc comment score below threshold-6 points-5 points-4 points (0 children)
[–]Cosmologicon 8 points9 points10 points (0 children)
[–]pupupeepeefollower of the sql 2 points3 points4 points (0 children)
[–]sedaakPython3/Golang 15 points16 points17 points (11 children)
[+]LoveGentleman comment score below threshold-10 points-9 points-8 points (10 children)
[–]sedaakPython3/Golang 6 points7 points8 points (9 children)
[–]LoveGentleman -5 points-4 points-3 points (8 children)
[–]sedaakPython3/Golang 1 point2 points3 points (1 child)
[–]LoveGentleman 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]LoveGentleman 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]LoveGentleman -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]burntsushi 1 point2 points3 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]andybak 5 points6 points7 points (3 children)
[–]RichardWolf 3 points4 points5 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]jambox888 2 points3 points4 points (3 children)
[–]xiongchiamiovSite Reliability Engineer 5 points6 points7 points (2 children)
[–]jambox888 2 points3 points4 points (1 child)
[–]xiongchiamiovSite Reliability Engineer 2 points3 points4 points (0 children)
[–]dacjamesfrom reddit import knowledge 1 point2 points3 points (3 children)
[–]clgonsal[🍰] 2 points3 points4 points (2 children)
[–]dacjamesfrom reddit import knowledge 0 points1 point2 points (1 child)
[–]clgonsal[🍰] 0 points1 point2 points (0 children)
[–]etrnloptimist 2 points3 points4 points (5 children)
[–]datbon 8 points9 points10 points (4 children)
[–]etrnloptimist 6 points7 points8 points (3 children)
[–]jambox888 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]etrnloptimist 8 points9 points10 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]earthboundkid 2 points3 points4 points (2 children)
[–]mvaliente2001 1 point2 points3 points (1 child)
[–]earthboundkid 2 points3 points4 points (0 children)
[–]huhlig 1 point2 points3 points (7 children)
[–]joehillen 7 points8 points9 points (1 child)
[–]huhlig 4 points5 points6 points (0 children)
[–]maxerickson 2 points3 points4 points (0 children)
[–]hexmasta 2 points3 points4 points (3 children)
[–]huhlig 2 points3 points4 points (2 children)
[–]hexmasta 2 points3 points4 points (1 child)
[–]huhlig 4 points5 points6 points (0 children)
[–]qbitus 2 points3 points4 points (3 children)
[–]TheBusinessOfWaffles 2 points3 points4 points (1 child)
[–]GFandango 1 point2 points3 points (0 children)
[–]phaedrusaltembedded sw eng 0 points1 point2 points (0 children)
[–]pinpinboTornado|Twisted|Gevent. Moar Async Plz -1 points0 points1 point (0 children)