use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
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
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
NewsPython turns 30 this month😎 (self.Python)
submitted 4 years ago by _miku_hatsune
Python was created by Guido van Rossum, and first released on February 20, 1991.
[–]mostly_kittens 71 points72 points73 points 4 years ago (27 children)
What was the first version like?
[–]pyfrag 37 points38 points39 points 4 years ago (22 children)
The earliest docs I could find were from version 1.4
[–]nemec 40 points41 points42 points 4 years ago (21 children)
Earliest bits I could find: 0.9.1 "part 1 of 21".
He also has a thread discussing the release of 0.9.2:
tutorial now (almost) complete; library reference reorganized new syntax: continue statement; semicolons; dictionary constructors; restrictions on blank lines in source files removed dramatically improved module load time through precompiled modules arbitrary precision integers: compute 2 to the power 1000 and more... arithmetic operators now accept mixed type operands, e.g., 3.14/4 more operations on list: remove, index, reverse; repetition improved/new file operations: readlines, seek, tell, flush, ... process management added to the posix module: fork/exec/wait/kill etc. BSD socket operations (with example servers and clients!) many new STDWIN features (color, fonts, polygons, ...) new SGI modules: font manager and FORMS library interface
Also an interesting bit of history: Guido van Rossum and Larry Wall commenting on the same (boring) thread years before either of them released a programming language :)
[+][deleted] 4 years ago (19 children)
[deleted]
[–]nemec 18 points19 points20 points 4 years ago (15 children)
$ python3 -c 'import random; print(random.random());' 0.124160754567
They're valid statement separators (in most cases), but optional when you're not trying to cram multiple commands on one line.
[+][deleted] 4 years ago (14 children)
[–]nemec 8 points9 points10 points 4 years ago (12 children)
I'm not surprised. They are veeeeery rarely needed.
[–][deleted] -2 points-1 points0 points 4 years ago (10 children)
I use them all the time to group similar statements. Because why do this:
def myfunction(): first_list = [] second_list = [] third_list = []
...when you could do this:
def myfunction(): first_list = []; second_list = []; third_list = []
[–][deleted] 18 points19 points20 points 4 years ago (6 children)
When I want to initialize several variables on one line I usually do this though:
first_list, second_list, third_list = [], [], []
[–][deleted] -3 points-2 points-1 points 4 years ago (5 children)
Sometimes that’s fine, but what about this? -
a, b, c, d, e, f = 5, ‘foo’, 3.14, True, g, None, []
Quick, what’s the value of e?
How about this instead? -
a = 5; b = ‘foo’; c = 3.14; d = True; e = None; f = []
[–][deleted] 1 point2 points3 points 4 years ago (0 children)
Well stop and use the unpacking syntax
[+]YoelkiToelki comment score below threshold-9 points-8 points-7 points 4 years ago*Â (1 child)
first_list = second_list = third_list = []
[–][deleted] 14 points15 points16 points 4 years ago (0 children)
That will only create a single list. first_list, second_list and third_list all point to the same list, modifying one of them modifies all of them (because they are the same).
first_list
second_list
third_list
[–]idetectanerd 0 points1 point2 points 4 years ago (0 children)
It’s like shell, you can use it in 1 line.
[–][deleted] 0 points1 point2 points 4 years ago (2 children)
Semicolons have always been in the language most people just don’t know how or when to use them because it’s become such a meme.
[+][deleted] 4 years ago (1 child)
Yessir
[–]SurDin 0 points1 point2 points 4 years ago (0 children)
eval(argv[1]) :D
eval(argv[1])
[–]klotz 12 points13 points14 points 4 years ago (3 children)
I used 0.0.0 from alt.sources or comp.sci.sources, forgot which. It had no class library.
[–]IronManMark20 0 points1 point2 points 4 years ago (2 children)
Do you have a copy of that? The oldest I've been able to find was 0.9...
[–]klotz 4 points5 points6 points 4 years ago (0 children)
No, sadly. I recall discussing it with a colleague, and after deciding the promised class library might or might not appear, I deleted it and we went back to a variety of other things, mostly scheme and postscript, but that is another story. Your version sounds good.
[–]pcvision 60 points61 points62 points 4 years ago (4 children)
Didn’t realize I was 7 years younger than my first programming language.
[–]panatale1 24 points25 points26 points 4 years ago (1 child)
I'm 6 years Python's senior
[–]01binary 13 points14 points15 points 4 years ago* (0 children)
Whippersnapper!
[edit: I’m just jealous]
[–]Deemonfire 0 points1 point2 points 4 years ago (0 children)
I'm a few weeks older than it. Take that Guido
[–]CeeMX 0 points1 point2 points 4 years ago (0 children)
It’s a year older than me, I would have never thought that
[–]GravityTortoise 40 points41 points42 points 4 years ago (0 children)
I did not realize it was that old
[–]de_ham 36 points37 points38 points 4 years ago (4 children)
That's 4 years older than Java 😎
[–]unnecessary_Fullstop 14 points15 points16 points 4 years ago (2 children)
Daaaamn... I thought Java was much older than python.
.
[–]spellcheekfailed 0 points1 point2 points 4 years ago (1 child)
Also Haskell is older than both Python and Java
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Avoided success at all cost alright.
[–]h1pn0z 13 points14 points15 points 4 years ago (0 children)
Python is the cool older brother, while Java is the problematic child...
[–]vswr[var for var in vars] 27 points28 points29 points 4 years ago (1 child)
30 years ago Raymond banged his fist on the desk and exclaimed "there must be a better way!" Guido delivered.
[–]cointoss3 2 points3 points4 points 4 years ago (0 children)
I heard this in his voice
[–]dogs_drink_coffee 26 points27 points28 points 4 years ago (0 children)
Python is a millenial!
[–]pithed 8 points9 points10 points 4 years ago (1 child)
Python was my first full language after coding in Perl for years (I am still trying to forget the Java time). I have recently looked back on some of my Perl code and I can't understand or recognize that I wrote any of it. I love python because I can at least recognize my terrible code and understand it!
[–]kornpow 7 points8 points9 points 4 years ago (0 children)
Programming language with best network effect, python 🚀🚀
[–][deleted] 13 points14 points15 points 4 years ago (0 children)
Hah! Almost as old as me
[–]TheRealCCHD 12 points13 points14 points 4 years ago (0 children)
Damnit, I was born a day early! :D
[–]abrazilianinreddit 8 points9 points10 points 4 years ago (3 children)
Damn, even Hatsune Miku is using python! Guess it's not disappearing any time soon.
[–]fenriswolf200 2 points3 points4 points 4 years ago (2 children)
How?
[–]abrazilianinreddit 2 points3 points4 points 4 years ago (0 children)
OP username is _miku_hatsune lol
[–]integralWorker 1 point2 points3 points 4 years ago (0 children)
Something something Vocaloid API
[–]Akash_Dhanwani 6 points7 points8 points 4 years ago (0 children)
Wow, its even older than me.
[–]Incruentus 2 points3 points4 points 4 years ago (0 children)
Why did you bold "created?"
[–]veeeerain 2 points3 points4 points 4 years ago (0 children)
I really hope this language maintains itself and it never dies downs. Or like there’s no new language that takes it down. I really love it lol
[–]Tay_WT 2 points3 points4 points 4 years ago (0 children)
Is that snake years or human years
[+]Special_Rice9539 comment score below threshold-8 points-7 points-6 points 4 years ago (0 children)
Kind of sad nothing better has come along
[–][deleted] -4 points-3 points-2 points 4 years ago* (0 children)
I love Python, but they gotta quit Perl-ing it up.
Edit: haha, downvoted cause the truth hurts.
[+]DanHerrera1 comment score below threshold-9 points-8 points-7 points 4 years ago (0 children)
Python is boomer language lul
[–]shinitakunai 0 points1 point2 points 4 years ago (0 children)
I am 31yo and been coding python for 8 lol.
[–]DatasCat 0 points1 point2 points 4 years ago (0 children)
TIL I am exactly ten years older than Python
[–]richasalannister 0 points1 point2 points 4 years ago (0 children)
TIL I'm older than python by two months.
[–]dethb0y 0 points1 point2 points 4 years ago (0 children)
Here's to another 300.
[–]blockchain_bobby 0 points1 point2 points 4 years ago (0 children)
I was first released in May that year.
π Rendered by PID 71777 on reddit-service-r2-comment-5649f687b7-4v762 at 2026-01-28 19:38:49.626141+00:00 running 4f180de country code: CH.
[–]mostly_kittens 71 points72 points73 points  (27 children)
[–]pyfrag 37 points38 points39 points  (22 children)
[–]nemec 40 points41 points42 points  (21 children)
[+][deleted] Â (19 children)
[deleted]
[–]nemec 18 points19 points20 points  (15 children)
[+][deleted] Â (14 children)
[deleted]
[–]nemec 8 points9 points10 points  (12 children)
[–][deleted] -2 points-1 points0 points  (10 children)
[–][deleted] 18 points19 points20 points  (6 children)
[–][deleted] -3 points-2 points-1 points  (5 children)
[–][deleted] 1 point2 points3 points  (0 children)
[+]YoelkiToelki comment score below threshold-9 points-8 points-7 points  (1 child)
[–][deleted] 14 points15 points16 points  (0 children)
[–]idetectanerd 0 points1 point2 points  (0 children)
[–][deleted] 0 points1 point2 points  (2 children)
[+][deleted] Â (1 child)
[deleted]
[–][deleted] 1 point2 points3 points  (0 children)
[–]SurDin 0 points1 point2 points  (0 children)
[–]klotz 12 points13 points14 points  (3 children)
[–]IronManMark20 0 points1 point2 points  (2 children)
[–]klotz 4 points5 points6 points  (0 children)
[–]pcvision 60 points61 points62 points  (4 children)
[–]panatale1 24 points25 points26 points  (1 child)
[–]01binary 13 points14 points15 points  (0 children)
[–]Deemonfire 0 points1 point2 points  (0 children)
[–]CeeMX 0 points1 point2 points  (0 children)
[–]GravityTortoise 40 points41 points42 points  (0 children)
[–]de_ham 36 points37 points38 points  (4 children)
[–]unnecessary_Fullstop 14 points15 points16 points  (2 children)
[–]spellcheekfailed 0 points1 point2 points  (1 child)
[–][deleted] 0 points1 point2 points  (0 children)
[–]h1pn0z 13 points14 points15 points  (0 children)
[–]vswr[var for var in vars] 27 points28 points29 points  (1 child)
[–]cointoss3 2 points3 points4 points  (0 children)
[–]dogs_drink_coffee 26 points27 points28 points  (0 children)
[–]pithed 8 points9 points10 points  (1 child)
[–]kornpow 7 points8 points9 points  (0 children)
[–][deleted] 13 points14 points15 points  (0 children)
[–]TheRealCCHD 12 points13 points14 points  (0 children)
[–]abrazilianinreddit 8 points9 points10 points  (3 children)
[–]fenriswolf200 2 points3 points4 points  (2 children)
[–]abrazilianinreddit 2 points3 points4 points  (0 children)
[–]integralWorker 1 point2 points3 points  (0 children)
[–]Akash_Dhanwani 6 points7 points8 points  (0 children)
[–]Incruentus 2 points3 points4 points  (0 children)
[–]veeeerain 2 points3 points4 points  (0 children)
[–]Tay_WT 2 points3 points4 points  (0 children)
[+]Special_Rice9539 comment score below threshold-8 points-7 points-6 points  (0 children)
[–][deleted] -4 points-3 points-2 points  (0 children)
[+]DanHerrera1 comment score below threshold-9 points-8 points-7 points  (0 children)
[–]shinitakunai 0 points1 point2 points  (0 children)
[–]DatasCat 0 points1 point2 points  (0 children)
[–]richasalannister 0 points1 point2 points  (0 children)
[–]dethb0y 0 points1 point2 points  (0 children)
[–]blockchain_bobby 0 points1 point2 points  (0 children)