Skip to content

🐍 Python ​

Python is a high-level, dynamically typed, interpreted language emphasising readability and developer productivity. Created by Guido van Rossum in 1991, it has become the world's most popular language for data science, web development, automation, and AI.

Topics ​

TopicDescriptionConcepts
📜 History & EvolutionBirth, Python 2→3, JIT, free-threading8
🔧 Core LanguageTypes, functions, classes, generators, decorators18
📦 Standard Libraryos, pathlib, json, collections, asyncio, typing14
⚡ ConcurrencyGIL, threading, multiprocessing, asyncio, futures11
🚀 AdvancedMetaclasses, descriptors, protocols, profiling11

Quick Start ​

python
# Python hello world
print("Hello, Python!")

# List comprehension
squares = [x**2 for x in range(1, 6)]
print(squares)  # [1, 4, 9, 16, 25]

# Generator (memory-efficient)
def fibonacci():
    a, b = 0, 1
    while True:
        yield a
        a, b = b, a + b

import itertools
fibs = list(itertools.islice(fibonacci(), 8))
print(fibs)  # [0, 1, 1, 2, 3, 5, 8, 13]

Run Python ​

All examples run with:

python3 <file>.py

Python 3.12+ is recommended. Check your version with python3 --version.

Released under the MIT License.