ThePythonBook

Advanced Python

Iterators, generators, decorators, type hints, async, and internals

12tutorials
72exercises
330minutes
1310XP
12 tutorials in this category

Python Iterators: How for Loops Really Work Under the Hood

Python Iterators: How for Loops Really Work Under the Hood — interactive tutorial with runnable examples and practice exercises.

advanced25m6105

Python Generators: Process Millions of Items Without Running Out of Memory

Python Generators: Process Millions of Items Without Running Out of Memory — interactive tutorial with runnable examples and practice exercises.

advanced30m7125

Python Decorators Explained: A Step-by-Step Guide

Python Decorators Explained: A Step-by-Step Guide — interactive tutorial with runnable examples and practice exercises.

advanced30m8145

Python Type Hints: Add Types, Generics, and the typing Module

Python Type Hints: Add Types, Generics, and the typing Module — interactive tutorial with runnable examples and practice exercises.

intermediate25m695

Python Protocols: Duck Typing with Type Safety

Python Protocols: Duck Typing with Type Safety — interactive tutorial with runnable examples and practice exercises.

advanced25m5100

Python Pydantic: Validate Data Like a Pro

Python Pydantic: Validate Data Like a Pro — interactive tutorial with runnable examples and practice exercises.

advanced25m6120

15 Python Pitfalls That Trip Up Even Experienced Developers

15 Python Pitfalls That Trip Up Even Experienced Developers — interactive tutorial with runnable examples and practice exercises.

intermediate25m7105

Python Threading vs Multiprocessing vs asyncio: When to Use What

Python Threading vs Multiprocessing vs asyncio: When to Use What — interactive tutorial with runnable examples and practice exercises.

advanced30m5100

Python Async/Await: Write Non-Blocking Code from Scratch

Python Async/Await: Write Non-Blocking Code from Scratch — interactive tutorial with runnable examples and practice exercises.

expert30m6120

Python Design Patterns: Factory, Strategy, Observer, and More

Python Design Patterns: Factory, Strategy, Observer, and More — interactive tutorial with runnable examples and practice exercises.

advanced30m6120

How Python Works Under the Hood: Memory, GIL, and Bytecode

How Python Works Under the Hood: Memory, GIL, and Bytecode — interactive tutorial with runnable examples and practice exercises.

expert30m5100

Build Command-Line Tools with argparse and sys.argv

Build Command-Line Tools with argparse and sys.argv — interactive tutorial with runnable examples and practice exercises.

intermediate25m575