Python Tutorials

Master Python from variables to OOP with visual, step-by-step tutorials. Build real-world skills with hands-on code examples and detailed explanations.

24 Tutorials
4 Learning Paths
5 Free Tutorials

Learning Paths

Follow a structured path or jump to any topic. Each path builds on the previous one.

Tutorials

24 tutorials from beginner to advanced — more coming soon

Control Flow

if/elif/else, for and while loops, range, enumerate, zip, and match/case.

Functions

def, default arguments, *args, **kwargs, lambda, scope rules, and closures.

Strings & Formatting

f-strings, string methods, slicing, encoding, and common string patterns.

File I/O

Read and write files, JSON, CSV, and modern path handling with pathlib.

Error Handling

try/except, custom exceptions, EAFP vs LBYL, and context managers.

Modules & Packages

Imports, pip, virtual environments, package structure, and standard library.

Iterators & Generators

Iterator protocol, yield, generator expressions, yield from, and itertools.

Decorators & Closures

Closures, @wraps, decorator arguments, @dataclass, @lru_cache, and chaining.

Testing in Python

pytest, fixtures, parametrize, mocking, coverage, and test organization.

Web Development with FastAPI

Async routes, Pydantic models, dependency injection, middleware, and testing.

Concurrency & Async

Threading, multiprocessing, asyncio, and when to use each approach.

Type Hints & Static Typing

Annotations, typing module, generics, Protocol, and mypy.

Data Science Essentials

NumPy arrays, Pandas DataFrames, data cleaning, and matplotlib.

Big-O Quick Reference

How algorithm performance scales with input size. Hover to compare.

O(1) Constant
O(log n) Logarithmic
O(n) Linear
O(n log n) Linearithmic
O(n²) Quadratic
O(n³) Cubic
O(2ⁿ) Exponential