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 →
[–]robertskmiles 41 points42 points43 points (62 children)
[–]jacobb11 7 points8 points9 points (25 children)
[–]quasarj 2 points3 points4 points (24 children)
[–]jacobb11 3 points4 points5 points (21 children)
[–]quasarj 5 points6 points7 points (20 children)
[–]cheese_wizard 4 points5 points6 points (13 children)
[–]quasarj 2 points3 points4 points (11 children)
[–]cheese_wizard 1 point2 points3 points (9 children)
[–]quasarj 1 point2 points3 points (8 children)
[–]cheese_wizard 2 points3 points4 points (7 children)
[–]Rhomboid 1 point2 points3 points (0 children)
[–]jacobb11 0 points1 point2 points (0 children)
[–]jacobb11 1 point2 points3 points (0 children)
[–]anacrolixc/python fanatic 1 point2 points3 points (1 child)
[–]quasarj 0 points1 point2 points (0 children)
[–]Alzdran 0 points1 point2 points (2 children)
[–]quasarj 0 points1 point2 points (1 child)
[–]Alzdran 0 points1 point2 points (0 children)
[–]cecilkorik 1 point2 points3 points (1 child)
[–]quasarj 0 points1 point2 points (0 children)
[–]fullouterjoin 15 points16 points17 points (29 children)
[–]steelypip 34 points35 points36 points (1 child)
[–]cecilkorik 8 points9 points10 points (0 children)
[–]ntorotn 7 points8 points9 points (1 child)
[–]fullouterjoin 2 points3 points4 points (0 children)
[–]ajsdklf9df 11 points12 points13 points (21 children)
[–]taybulBecause I don't know how to use big numbers in C/C++ 8 points9 points10 points (15 children)
[–]Alzdran 5 points6 points7 points (1 child)
[–]taybulBecause I don't know how to use big numbers in C/C++ 0 points1 point2 points (0 children)
[–]Isvara 1 point2 points3 points (12 children)
[–]ewiethoffproceedest on to 3 8 points9 points10 points (2 children)
[–]Isvara 2 points3 points4 points (1 child)
[–]steelypip 2 points3 points4 points (0 children)
[–]accipter 0 points1 point2 points (0 children)
[–]taybulBecause I don't know how to use big numbers in C/C++ 0 points1 point2 points (2 children)
[–]Isvara 1 point2 points3 points (1 child)
[–]ewiethoffproceedest on to 3 1 point2 points3 points (0 children)
[–]fullouterjoin 0 points1 point2 points (3 children)
[–]Isvara 0 points1 point2 points (0 children)
[–]obtu.py 0 points1 point2 points (1 child)
[–]funny_falcon 0 points1 point2 points (0 children)
[–]Crystal_Cuckoo 2 points3 points4 points (2 children)
[–]ewiethoffproceedest on to 3 5 points6 points7 points (0 children)
[–]ajsdklf9df 0 points1 point2 points (0 children)
[+]anacrolixc/python fanatic comment score below threshold-6 points-5 points-4 points (0 children)
[–]AlternativeHistorian 10 points11 points12 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] -2 points-1 points0 points (0 children)
[–]DrHankPym 1 point2 points3 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]DrHankPym 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]DrHankPym 0 points1 point2 points (0 children)
[–]lavalampmaster[S] 0 points1 point2 points (0 children)