← Back to Python Course | Chapter 1: Basics | Lesson 2 of 14

Python History & Features

History of Python

Dutch programmer Guido van Rossum began designing Python in December 1989 as a hobby project to fill his Christmas week, and released version 0.9.0 publicly in 1991. The name comes from the British comedy troupe Monty Python, not the snake, reflecting van Rossum's goal of a language that didn't take itself too seriously.

Example: History of Python

python
# Created by Guido van Rossum, first released in 1991
# Named after the comedy troupe Monty Python, not the snake
print("Python: born 1991, named after Monty Python")

Interpreted Language

Because an interpreter executes code directly rather than requiring a separate compile step, you can change a line and immediately re-run the script to see the effect. This tight feedback loop is a big part of why Python feels productive for prototyping, scripting, and teaching.

Example: Interpreted Language

python
x = 5
print(x)
# Change the value above and rerun -- no compile step needed
x = 10
print(x)

Dynamic Typing

You never write int x or String name in Python — the interpreter inspects the value on the right side of an assignment and binds the variable to whatever type that value is. This makes code shorter to write, but it also means type-related bugs surface at runtime instead of being caught before the program runs.

Example: Dynamic Typing

python
x = 5
print(type(x))
x = "hello"
print(type(x))

Object-Oriented Programming

Object-oriented programming lets you bundle related data and behavior together into classes, which Python fully supports alongside procedural and functional styles. This flexibility means you can start with simple scripts and grow into full class-based designs as a project's complexity increases.

Example: Object-Oriented Programming

python
class Dog:
    def __init__(self, name):
        self.name = name

    def bark(self):
        print(self.name, "says woof")

Dog("Rex").bark()

Standard Library Support

Python's standard library ships with modules for tasks like file I/O, regular expressions, networking, JSON parsing, and math — all installed automatically, no extra download required. This 'batteries included' philosophy is a major reason simple scripts can be written with zero third-party dependencies.

Example: Standard Library Support

python
import json
import math
data = json.dumps({"pi": math.pi})
print(data)

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.