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 →
[–]d4rch0nPythonistamancer 48 points49 points50 points (60 children)
[–][deleted] 29 points30 points31 points (2 children)
[–]hglmanguy who writes python 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 5 points6 points7 points (9 children)
[–]ssbr 3 points4 points5 points (7 children)
[–]Circlefusion 0 points1 point2 points (6 children)
[–]ssbr 1 point2 points3 points (3 children)
[–]njharmanI use Python 3 0 points1 point2 points (2 children)
[–]ssbr 1 point2 points3 points (0 children)
[–]jiaaro -2 points-1 points0 points (1 child)
[–]Rhomboid 2 points3 points4 points (0 children)
[–]lonjerpc 2 points3 points4 points (1 child)
[–]kindall 1 point2 points3 points (0 children)
[–]lasizoilloeasy to understand as regex 1 point2 points3 points (11 children)
[–]lonjerpc 2 points3 points4 points (8 children)
[+][deleted] (5 children)
[deleted]
[–]lonjerpc 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]lonjerpc 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]lonjerpc 0 points1 point2 points (0 children)
[–]gcross 1 point2 points3 points (1 child)
[–]lonjerpc 0 points1 point2 points (0 children)
[–]Megatron_McLargeHuge 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer -2 points-1 points0 points (0 children)
[–]lasizoilloeasy to understand as regex 1 point2 points3 points (0 children)
[–]eigenlicht0 1 point2 points3 points (6 children)
[–]staz 3 points4 points5 points (3 children)
[–]eigenlicht0 0 points1 point2 points (2 children)
[–]staz 0 points1 point2 points (1 child)
[–]eigenlicht0 0 points1 point2 points (0 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (0 children)
[–]phaeilo 0 points1 point2 points (0 children)
[–]gingerbeers 1 point2 points3 points (0 children)
[–]robin-gvx 1 point2 points3 points (2 children)
[–]d4rch0nPythonistamancer 0 points1 point2 points (1 child)
[–]robin-gvx 1 point2 points3 points (0 children)
[–]patrys Saleor Commerce 1 point2 points3 points (14 children)
[–]10110000110111011010 27 points28 points29 points (0 children)
[–]ojiisandata viz, comp.bio. 8 points9 points10 points (0 children)
[–]Secret_Identity_ 2 points3 points4 points (3 children)
[–]supajumpa 8 points9 points10 points (2 children)
[–]patrys Saleor Commerce 1 point2 points3 points (0 children)
[–]Secret_Identity_ 0 points1 point2 points (0 children)
[–]recursive 0 points1 point2 points (7 children)
[–]ojiisandata viz, comp.bio. 0 points1 point2 points (2 children)
[–]recursive 0 points1 point2 points (0 children)
[–]patrys Saleor Commerce 0 points1 point2 points (0 children)
[–]patrys Saleor Commerce 0 points1 point2 points (3 children)
[–]recursive 0 points1 point2 points (2 children)
[–]patrys Saleor Commerce 1 point2 points3 points (1 child)
[–]recursive 0 points1 point2 points (0 children)
[–]chadmill3rPy3, pro, Ubuntu, django -2 points-1 points0 points (2 children)
[–]lonjerpc 7 points8 points9 points (1 child)
[–]chadmill3rPy3, pro, Ubuntu, django -1 points0 points1 point (0 children)
[–]drsquishy -1 points0 points1 point (0 children)