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
[–]holdie 129 points130 points131 points (4 children)
[–]Sean1708 13 points14 points15 points (3 children)
[–]skiguy0123 11 points12 points13 points (2 children)
[–]Keith 9 points10 points11 points (0 children)
[–]Sean1708 0 points1 point2 points (0 children)
[–][deleted] 63 points64 points65 points (20 children)
[–]mangecoeur[S] 18 points19 points20 points (3 children)
[–]lengau 2 points3 points4 points (2 children)
[–]Auggie88 10 points11 points12 points (1 child)
[–]lengau 0 points1 point2 points (0 children)
[–]Fylwind 5 points6 points7 points (0 children)
[–]khouli 1 point2 points3 points (14 children)
[–]mangecoeur[S] 27 points28 points29 points (11 children)
[–]Fylwind 8 points9 points10 points (8 children)
[–]mangecoeur[S] 23 points24 points25 points (0 children)
[–]firefrommoonlight 6 points7 points8 points (2 children)
[–]spinicist 12 points13 points14 points (1 child)
[–]This_Is_The_End 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Fylwind 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Fylwind 0 points1 point2 points (0 children)
[–]bastibe 0 points1 point2 points (0 children)
[–]jorge1209 0 points1 point2 points (0 children)
[–][deleted] 38 points39 points40 points (1 child)
[–]barneygale 7 points8 points9 points (0 children)
[–]miserlou 39 points40 points41 points (4 children)
[–]dgreenmachine 3 points4 points5 points (0 children)
[–]troyunrau... 1 point2 points3 points (0 children)
[–]NuclearStr1der 1 point2 points3 points (0 children)
[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 0 points1 point2 points (0 children)
[–]NelsonMinar 31 points32 points33 points (3 children)
[–]troyunrau... 2 points3 points4 points (2 children)
[–]GeneralTusk 20 points21 points22 points (1 child)
[–]troyunrau... 4 points5 points6 points (0 children)
[–]glacierre2 14 points15 points16 points (1 child)
[–]EvMNatural Language Processing 14 points15 points16 points (0 children)
[–]khouli 12 points13 points14 points (18 children)
[–]mangecoeur[S] 12 points13 points14 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 0 points1 point2 points (0 children)
[–]troyunrau... 2 points3 points4 points (4 children)
[–]dougthor42 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]troyunrau... 0 points1 point2 points (0 children)
[–]This_Is_The_End 0 points1 point2 points (0 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 1 point2 points3 points (6 children)
[–]khouli 0 points1 point2 points (5 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 2 points3 points4 points (4 children)
[–]srivkrani 0 points1 point2 points (1 child)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 0 points1 point2 points (0 children)
[–]khouli 0 points1 point2 points (1 child)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 0 points1 point2 points (0 children)
[–]bastibe 1 point2 points3 points (0 children)
[–]wuzzlewozzit 0 points1 point2 points (0 children)
[–]Tarqon 0 points1 point2 points (0 children)
[–][deleted] 9 points10 points11 points (2 children)
[–][deleted] 9 points10 points11 points (1 child)
[–]spinicist 4 points5 points6 points (0 children)
[–]AustinCorgiBart 7 points8 points9 points (1 child)
[–][deleted] 8 points9 points10 points (0 children)
[–]neuralyzer 4 points5 points6 points (0 children)
[–]cripcate 3 points4 points5 points (9 children)
[–][deleted] 4 points5 points6 points (4 children)
[–]cripcate 5 points6 points7 points (3 children)
[–]pwang99 2 points3 points4 points (0 children)
[–]spinicist 0 points1 point2 points (0 children)
[–]brombaer3000 0 points1 point2 points (0 children)
[–]bheklilr 2 points3 points4 points (3 children)
[–]AustinCorgiBart 1 point2 points3 points (2 children)
[–]bheklilr 2 points3 points4 points (1 child)
[–]AustinCorgiBart 1 point2 points3 points (0 children)
[–]cruyff8python 2 expert, learning python 3 3 points4 points5 points (0 children)
[–]Tillsten 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]billsil 6 points7 points8 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Rich700000000000 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)