CODING
ADVENTURE
0 / 12 completed

FIELD NOTE 12 / BEGINNER PYTHON

Python history: origins, syntax and readable code

Programming languages are designed by people. Their syntax reflects choices about readability, expression and the jobs people want computers to do.

The idea

Guido van Rossum began implementing Python during the Christmas holidays of 1989 and released it publicly in February 1991. His earlier work with ABC influenced its design. The name came from Monty Python’s Flying Circus. These details are useful because they show a language growing from real needs and earlier ideas, rather than appearing fully formed.

A tiny experiment

PYTHON 3PREDICT BEFORE YOU RUN
import sys
print("Python major version:", sys.version_info.major)
print("Two values:", 4, 7)
print("Their sum:", 4 + 7)
Run and change this example ↗
Reveal the expected output
Python major version: 3
Two values: 4 7
Their sum: 11

Read it one step at a time

  1. The major version is 3: this companion teaches Python 3.
  2. Parentheses make print a function call here. Older Python 2 examples may show a different spelling.
  3. The comma separates arguments; + performs addition. Similar-looking punctuation can have different jobs.

Make one change

Which is easier to explain to a friend: print(4 + 7), or total = 4 + 7 followed by print(total)?

Check your thinking

Both produce 11. A meaningful name can explain the role of a value; a short expression can be clearer when the extra name adds nothing. Choose for the reader.

Keep following the trail

Sources & further reading

Companion notes for Coding Adventure by James Colby. Historical claims link to their sources; the examples are written for this learning trail.