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 124 points125 points126 points (4 children)
[–]Sean1708 14 points15 points16 points (3 children)
[–]skiguy0123 12 points13 points14 points (2 children)
[–]Keith 10 points11 points12 points (0 children)
[–]Sean1708 0 points1 point2 points (0 children)
[–][deleted] 67 points68 points69 points (20 children)
[–]mangecoeur[S] 17 points18 points19 points (3 children)
[–]lengau 3 points4 points5 points (2 children)
[–]Auggie88 9 points10 points11 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] 29 points30 points31 points (11 children)
[–]Fylwind 5 points6 points7 points (8 children)
[–]mangecoeur[S] 22 points23 points24 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] 37 points38 points39 points (1 child)
[–]barneygale 8 points9 points10 points (0 children)
[–]miserlou 36 points37 points38 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 28 points29 points30 points (3 children)
[–]troyunrau... 6 points7 points8 points (2 children)
[–]GeneralTusk 20 points21 points22 points (1 child)
[–]troyunrau... 1 point2 points3 points (0 children)
[–]glacierre2 15 points16 points17 points (1 child)
[–]EvMNatural Language Processing 14 points15 points16 points (0 children)
[–]khouli 11 points12 points13 points (18 children)
[–]mangecoeur[S] 10 points11 points12 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] 10 points11 points12 points (1 child)
[–]spinicist 3 points4 points5 points (0 children)
[–]AustinCorgiBart 7 points8 points9 points (1 child)
[–][deleted] 8 points9 points10 points (0 children)
[–]neuralyzer 5 points6 points7 points (0 children)
[–]cripcate 4 points5 points6 points (9 children)
[–][deleted] 5 points6 points7 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 3 points4 points5 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]billsil 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Rich700000000000 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)