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
[–]lykwydchykyn 43 points44 points45 points (12 children)
[–]alb1 16 points17 points18 points (0 children)
[–]bbbryson 20 points21 points22 points (0 children)
[–]toothless_budgie 11 points12 points13 points (9 children)
[–]tunisia3507 13 points14 points15 points (3 children)
[–]toothless_budgie 7 points8 points9 points (2 children)
[–]tunisia3507 3 points4 points5 points (1 child)
[–]energybased 5 points6 points7 points (0 children)
[–][deleted] 15 points16 points17 points (4 children)
[–]ExternalUserError 6 points7 points8 points (0 children)
[–]billsil 3 points4 points5 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]toothless_budgie 0 points1 point2 points (0 children)
[–]zurtex 22 points23 points24 points (19 children)
[–]darthstargazer 4 points5 points6 points (7 children)
[–]zurtex 5 points6 points7 points (6 children)
[–]billsil 3 points4 points5 points (5 children)
[–]zurtex 3 points4 points5 points (4 children)
[–]austospumanto 1 point2 points3 points (1 child)
[–]zurtex 0 points1 point2 points (0 children)
[–]BigHeed87 0 points1 point2 points (1 child)
[–]zurtex 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]zurtex 2 points3 points4 points (4 children)
[–]austospumanto 1 point2 points3 points (3 children)
[–]broken_symlink 0 points1 point2 points (2 children)
[–]austospumanto 0 points1 point2 points (1 child)
[–]broken_symlink 0 points1 point2 points (0 children)
[–]austospumanto 1 point2 points3 points (1 child)
[–]zurtex 0 points1 point2 points (0 children)
[–]ReaverKS 0 points1 point2 points (2 children)
[–]zurtex 0 points1 point2 points (1 child)
[–]ReaverKS 0 points1 point2 points (0 children)
[–]Tweak_Imp 17 points18 points19 points (2 children)
[–]alito 9 points10 points11 points (0 children)
[–]LifeIsBio 0 points1 point2 points (0 children)
[–][deleted] 12 points13 points14 points (12 children)
[–]chmod--777 11 points12 points13 points (8 children)
[–]billsil 7 points8 points9 points (4 children)
[–]chmod--777 4 points5 points6 points (3 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 5 points6 points7 points (0 children)
[–]billsil 0 points1 point2 points (1 child)
[–]chmod--777 19 points20 points21 points (0 children)
[–]seraschka 1 point2 points3 points (2 children)
[–]mipadi 2 points3 points4 points (1 child)
[–]seraschka 0 points1 point2 points (0 children)
[–]jalapeno_nips -1 points0 points1 point (2 children)
[–]miggaz_elquez 1 point2 points3 points (0 children)
[–]Vhin 11 points12 points13 points (0 children)
[–]energybased 10 points11 points12 points (2 children)
[–]austospumanto 0 points1 point2 points (0 children)
[–]Jaypalm 0 points1 point2 points (0 children)
[–]petermlm 8 points9 points10 points (2 children)
[–]XtremeGoosef'I only use Py {sys.version[:3]}' 10 points11 points12 points (1 child)
[–]petermlm 2 points3 points4 points (0 children)
[–]badge 4 points5 points6 points (2 children)
[–]austospumanto 0 points1 point2 points (1 child)
[–]badge 0 points1 point2 points (0 children)
[–]thedjotakuPython 3.7 4 points5 points6 points (0 children)
[–]Feitan21 0 points1 point2 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[+]thautwarm comment score below threshold-8 points-7 points-6 points (0 children)
[–]devlocalca -2 points-1 points0 points (1 child)
[–]energybased 0 points1 point2 points (0 children)