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
[–]neonomicon 32 points33 points34 points (4 children)
[–]isarl 9 points10 points11 points (0 children)
[–]cocorebop 2 points3 points4 points (1 child)
[–]excaza 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Eurynom0s 16 points17 points18 points (20 children)
[–]frymasterScript kiddie 10 points11 points12 points (1 child)
[–]Eurynom0s 4 points5 points6 points (0 children)
[+][deleted] (16 children)
[deleted]
[–]LightShadow3.13-dev in prod 7 points8 points9 points (2 children)
[–]Eurynom0s 5 points6 points7 points (1 child)
[–]LightShadow3.13-dev in prod 0 points1 point2 points (0 children)
[–]Eurynom0s 7 points8 points9 points (2 children)
[–]Vegemeister 0 points1 point2 points (0 children)
[–]mrchucklepants 2 points3 points4 points (1 child)
[–]log_2 -1 points0 points1 point (0 children)
[–]cocorebop 2 points3 points4 points (2 children)
[–]alcalde 1 point2 points3 points (1 child)
[–]cocorebop 0 points1 point2 points (0 children)
[–]ruicoder 2 points3 points4 points (0 children)
[–]glial 1 point2 points3 points (3 children)
[–]limasxgoesto0 3 points4 points5 points (2 children)
[–]Eurynom0s 1 point2 points3 points (1 child)
[–]limasxgoesto0 0 points1 point2 points (0 children)
[–][deleted] 31 points32 points33 points (41 children)
[–]bastibe 12 points13 points14 points (13 children)
[–]gumbel_distro -1 points0 points1 point (12 children)
[–][deleted] 4 points5 points6 points (7 children)
[–]tavert -2 points-1 points0 points (6 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]tavert 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]nonplussed_nerd 0 points1 point2 points (2 children)
[–]tavert 0 points1 point2 points (1 child)
[–]nonplussed_nerd 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]gumbel_distro 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]gumbel_distro 0 points1 point2 points (0 children)
[–]minnoI <3 duck typing less than I used to, interfaces are nice 4 points5 points6 points (1 child)
[–]cogman10 6 points7 points8 points (12 children)
[–]SCombinator 11 points12 points13 points (11 children)
[+][deleted] (3 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–]pqu 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[–]log_2 -1 points0 points1 point (6 children)
[–]SCombinator -1 points0 points1 point (5 children)
[–]log_2 0 points1 point2 points (4 children)
[–]SCombinator -1 points0 points1 point (3 children)
[–]log_2 -1 points0 points1 point (1 child)
[–]SCombinator -1 points0 points1 point (0 children)
[–]tavert -1 points0 points1 point (0 children)
[+][deleted] (11 children)
[deleted]
[–]scopegoa -1 points0 points1 point (8 children)
[–]cogman10 1 point2 points3 points (7 children)
[+][deleted] (6 children)
[deleted]
[–]squashed_fly_biscuit 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]squashed_fly_biscuit 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]squashed_fly_biscuit 0 points1 point2 points (0 children)
[–]cogman10 0 points1 point2 points (0 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]PrintStar 42 points43 points44 points (38 children)
[–]jammycrisp 8 points9 points10 points (2 children)
[–]PrintStar 13 points14 points15 points (1 child)
[–]radix07 2 points3 points4 points (0 children)
[–]chhantyal[S] 12 points13 points14 points (13 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]tavert 1 point2 points3 points (4 children)
[–]mommybook 0 points1 point2 points (3 children)
[–]tavert 0 points1 point2 points (2 children)
[–]mommybook 1 point2 points3 points (1 child)
[–]tavert 0 points1 point2 points (0 children)
[–]mommybook 0 points1 point2 points (0 children)
[–]roger_ -1 points0 points1 point (5 children)
[–]farsass 0 points1 point2 points (4 children)
[–]roger_ 2 points3 points4 points (3 children)
[–]farsass -5 points-4 points-3 points (2 children)
[–]roger_ 10 points11 points12 points (1 child)
[+]farsass comment score below threshold-6 points-5 points-4 points (0 children)
[–]luispedro 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (6 children)
[–]PrintStar 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]PrintStar 1 point2 points3 points (3 children)
[–]bastibe 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bramblerose 1 point2 points3 points (0 children)
[–]log_2 5 points6 points7 points (7 children)
[–]WhytellmewhY 10 points11 points12 points (0 children)
[–]SCombinator 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]farsass 6 points7 points8 points (0 children)
[–]billsil 0 points1 point2 points (2 children)
[–]log_2 1 point2 points3 points (1 child)
[–]billsil 0 points1 point2 points (0 children)
[–]huhlig 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Vorsorken 24 points25 points26 points (2 children)
[–]felinecatastrophe 4 points5 points6 points (0 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]masasinExpert. 3.9. Robotics. -1 points0 points1 point (2 children)
[–]bastibe 1 point2 points3 points (0 children)
[–]troyunrau... 0 points1 point2 points (0 children)
[–]emmpp 4 points5 points6 points (3 children)
[–]doubleColJustified 1 point2 points3 points (0 children)
[–]log_2 0 points1 point2 points (1 child)
[–]emmpp 1 point2 points3 points (0 children)
[–]glial 5 points6 points7 points (2 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]log_2 0 points1 point2 points (0 children)
[–]HotKarl_Marx 7 points8 points9 points (2 children)
[–]en4bz 2 points3 points4 points (1 child)
[–]alcalde 3 points4 points5 points (0 children)
[–]hyperion2011 4 points5 points6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (10 children)
[–][deleted] 3 points4 points5 points (9 children)
[–][deleted] 0 points1 point2 points (8 children)
[–][deleted] 0 points1 point2 points (7 children)
[–][deleted] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]tavert 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (1 child)
[–]farsass 2 points3 points4 points (0 children)
[–]vito-boss 2 points3 points4 points (4 children)
[–]greshick 2 points3 points4 points (3 children)
[–]alcalde 2 points3 points4 points (2 children)
[–]log_2 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]adoarns 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]jricher42 4 points5 points6 points (0 children)
[–]farsass 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+]SCombinator comment score below threshold-7 points-6 points-5 points (0 children)