Python History
Guido van Rossum began Python at CWI in the Netherlands during the 1989 Christmas holidays. He shared it publicly through USENET in February 1991, and Python 3.0 arrived in December 2008. These dates mark the project's start, its first public release, and a later major version. Python grew from ideas in ABC and from a need for an extensible scripting language for Amoeba operating-system work.
Trace Python's beginnings, its name, and the arrival of Python 3.
Example check: Worked and guided code samples are checked against CPython 3.13. Practice uses Pyodide 0.29.5 (Python 3.13) in your browser. How we check lessons
Video lesson: Python History
The preview is stored on this site. YouTube loads only when you press Play. Watch on YouTube
Jump to a chapter
Read the video transcript
Select a timestamp to watch that moment on YouTube.
- 00:00
Why is this language called Python, and which year should we call its beginning? The answer is more interesting than a single date. In this lesson, we will build a tiny timeline and separate three different events: work starting in 1989, public sharing in 1991, and the arrival of Python 3 in 2008. Open the matching lesson page and look at the four print calls in the console. Each call contains a line of text inside quotation marks. Press Run and you will see the same lines without the surrounding quotes in the output. That is our first useful distinction. Source code is what we ask Python to do; output is what the program displays.
- 00:43
The interpreter does not know whether a historical claim inside a string is true. It only follows the instruction to display it. We will check the facts as carefully as the code. You do not need to understand every symbol yet. The next lesson teaches print in detail, and you can already change a date or a word here to see what happens. Keep one question in mind as we move through the timeline: does each date mean creation, public sharing, or a later version? Guido van Rossum began working on Python during the Christmas holidays of 1989 at CWI in the Netherlands. He was working with the Amoeba operating system group.
- 01:24
That group needed an easier way to write administration programs than either low-level C programs or shell scripts that could not easily reach Amoeba's system calls. Van Rossum had also worked on a language called ABC. He liked parts of its design, but wanted a language that was easier to extend and connect to other tools. That practical need helps explain why Python still feels useful for small scripts as well as larger projects. The project did not appear as a finished language overnight. Colleagues tried early versions during the following year, and their feedback shaped improvements. The first timeline line therefore says that work started in 1989.
- 02:07
It does not claim that a completed Python 3 interpreter existed then. Now look at the optional guide example on the lesson page. It imports the modern math module, then prints the integer square root of eighty-one and the factorial of five. The outputs are nine and one hundred twenty. This is present-day Python, not a preserved program from 1989. It illustrates the same broad idea: you can combine a small script with a library that already knows how to do a specialized job. A module is a collection of reusable code. We will learn imports properly later. For now, notice the program's structure.
- 02:48
First it makes math available, then it calls two functions from that module, then print displays their answers. Predict what changing factorial of five to factorial of four would produce. Four times three times two times one gives twenty-four. Trying a prediction before you run the change is a powerful way to learn from any example. After more than a year of development, van Rossum posted Python publicly to USENET in February 1991. That is why the second date means public sharing, not the first moment he thought of the language. The distinction matters when you read an old article saying Python began in 1989 and another saying it appeared in 1991.
- 03:33
They can both be describing real events. Now for the name. Van Rossum was reading published scripts from the comedy series Monty Python's Flying Circus. He wanted a name that was short, distinctive, and slightly mysterious. He chose Python. The language was not named for the snake, even though snake pictures later became an obvious visual association. Try this line in the console: print that Python was named after a snake. The program runs without an error and displays the sentence. Yet the sentence is false. Replace the claim with the Monty Python origin and run it again. This is a small but important lesson about programming.
- 04:16
A successful run only tells us the code followed Python's rules and completed. It does not prove that the data, calculation, or statement inside the program is correct. In later projects, we will test both the behavior of the program and the meaning of its results. The same habit helps when you copy a snippet from a forum: run it, inspect what it does, and check its claims against a reliable source. Python 3.0 was released in December 2008, long after that public post in 1991. It was a major version, which is why a very old Python 2 example may not behave exactly like a current Python 3 example.
- 04:58
Every exercise in this course uses Python 3. The guide gives you a compact way to see why the version label matters. Run print five divided by two with one slash. Python 3 prints two point five. Run the same numbers with two slashes and it prints two, the whole-number floor result. Those operators answer different questions. This is not a complete tour of division; there is a separate operators lesson for that. It is an example of why checking the actual interpreter and its rules matters more than trusting memory from an old answer. Another guide example imports the sys module and reads the interpreter's major version.
- 05:40
It prints Major version: three, then confirms that the comparison to three is true. If a future Python 3 update changes the minor number, that basic major-version check still makes sense. Return to the timeline now. Read each output line aloud and ask what it represents. Change the second milestone from just 1991 to February 1991, because the month makes the event precise. Add another print call saying the name came from Monty Python's Flying Circus. Run the code and check that your new line appears. If your new sentence does not appear, check that it is inside a print call, with matching quotes and parentheses.
- 06:22
Then take the three-question quiz on the page. It asks who started the work, what happened in February 1991, and what inspired the name. You have now practiced an essential learning loop: read a claim, predict an output, run a small program, and verify the meaning. Next, we will use the same console to write Hello, World and understand print from the ground up.
Understand the concept
Van Rossum shared Python publicly through USENET in February 1991. He chose the name after Monty Python's Flying Circus, a comedy series whose scripts he was reading. The programming language was not named after the snake.
Python 3.0 arrived in December 2008. That was a major new version, not Python's first public appearance. The examples in this learning path use Python 3, so keep the 1991 and 2008 milestones separate. In the timeline below, each print() call displays one line of text; you will explore print() in the next lesson.
- 1989 start; February 1991 public sharing
- Named after Monty Python's Flying Circus
- Python 3.0 arrived in December 2008
See it step by step
Read the code, predict the output, then compare it with the result.
01. Two early milestones
print("1989: Python begins")
print("February 1991: Python is shared publicly")1989: Python begins
February 1991: Python is shared publiclyEach print() call adds one timeline line. Python began in 1989 and was publicly shared in February 1991.
02. Name and major version
print("Named after Monty Python's Flying Circus")
print("Python 3.0 arrived in 2008")Named after Monty Python's Flying Circus
Python 3.0 arrived in 2008The comedy show inspired the name; the 2008 Python 3.0 release was a later milestone.
A closer look
Follow the reasoning, inspect each result, then try the suggested changes in the console below.
A small language that could use existing tools
Python began as a practical way to write useful programs without rebuilding every tool from scratch. That idea still shapes the language: a short script can bring in a module, call a well-tested function, and focus on the problem rather than the machinery underneath. The standard library is the set of modules that comes with Python itself. This is Lesson 00, so treat the code below as a preview: run it and notice the result. Later lessons unpack imports, operators, and comparisons.
The math module below is a present-day example of that approach, not code from 1989. Importing it makes its functions available under the math name. Predict the second line before running the program: factorial multiplies 5 × 4 × 3 × 2 × 1. You can then change 5 to 4 and see whether your prediction holds.
import math
print(math.isqrt(81))
print(math.factorial(5))9
120- import math makes the standard-library module available.
- isqrt finds the integer square root of 81; factorial multiplies descending whole numbers.
- Each print call shows a result on its own line.
Why the version on a tutorial matters
Python grew through many releases. A major version can change how familiar-looking code behaves, so an old example deserves a version check before you copy it. Python 3 is the version used throughout this course. In Python 3, the / operator performs ordinary division and returns a floating-point number even when both inputs are integers.
The // operator asks for floor division instead. With positive numbers it gives the count of complete groups, which is useful when a result must be a whole number. Run these two lines and compare their outputs. The difference is a concrete reason to read the version label on documentation and forum answers, especially when they were written years ago.
print(5 / 2)
print(5 // 2)2.5
2- / keeps the fractional part and produces a float.
- // rounds the quotient down toward negative infinity; for 5 / 2 it gives 2.
- The operators answer different questions despite using the same inputs.
Choose examples you can reproduce
When you find code in a search result, first check which Python version it targets, which packages it needs, and what result it claims to produce. A Python 3 interpreter cannot promise to run every Python 2 snippet unchanged. Package versions matter too, but the interpreter's major version is the first simple clue when an example behaves unexpectedly.
The sys module can report that version from inside a program. This check prints only the major number, so the output stays useful across Python 3 updates. In a real project, the exact minor version can matter as well; inspect sys.version_info.minor when a feature was added recently. Keep a short runnable example and its expected output whenever you learn a new idea.
import sys
print("Major version:", sys.version_info.major)
print("Using Python 3:", sys.version_info.major == 3)Major version: 3
Using Python 3: True- sys.version_info reports the interpreter's version as named fields.
- The comparison == 3 produces True for a Python 3 interpreter.
- A reproducible example states both the code and the result to expect.
Try it in Python
Edit the example and run it. Python starts in your browser the first time you click Run.
Python console
Ready to runNeed input()? Add one value per line
Your output appears here.
Need a hint?
First edit the existing 1991 string so it says 'February 1991'. Then add a separate print() call that names Monty Python's Flying Circus as the inspiration.
Complete the task and select Check task to verify your code.
Quick quiz
Three questions. You can change your answers and try again.
Typical mistakes
These timeline lines run without errors, but their claims are wrong. Check facts as carefully as code.
Assuming the name means snake
print("Python was named after a snake.")print("Python was named after Monty Python.")What happens: The code runs, but the historical claim is false.
A program can run successfully and still print incorrect information. Check the fact as well as the syntax.
Mixing up 1991 and 2008
print("Python 3.0 was first shared in 1991.")print("Python was public in 1991; Python 3.0 arrived in 2008.")What happens: The code runs, but it confuses two milestones.
Python's first public sharing and the Python 3.0 release happened at different times.