Real Python, in the tab
Every example, exercise and the playground runs on CPython 3.14 compiled to WebAssembly. No install. Examples and the playground need no account; coding practice needs a free ID.
1080 quiz questions
Ten per lesson plus module exams and a final, including concept checks, predict-the-output, and spot-the-bug challenges.
171 reference entries
Built-in functions and every list, dict, string, set, tuple and file method, each with runnable examples.
Progress that sticks
Sign in and your lessons, exercise results, quiz marks, streak and leaderboard rank are saved. A username and a password is the whole signup, with no email address asked for.
- Module 10/5 lessons
Python Basics
Start writing and running clear Python programs with confidence.
- Module 20/6 lessons
Operators and Control Flow
Master Python operators, user input, smart decision branching, and powerful loops.
- Module 30/6 lessons
Data Structures
Master sequences, slicing, strings, list algorithms, and powerful comprehensions.
- Module 40/6 lessons
Dictionaries and Sets
Map key-value relationships, model unique collections, and apply fast set algebra.
- Module 50/6 lessons
Functions and Scope
Organize reusable code with parameters, return values, recursion, variable arguments, and introspection.
- Module 60/5 lessons
Functional Python and Modules
Harness lambdas, higher-order functions, modular architecture, decorators, and generator expressions.
- Module 70/6 lessons
File Handling and Data Formats
Read and write files, manipulate modern paths with pathlib, and parse CSV and JSON data.
- Module 80/5 lessons
Error Handling and Robust Code
Handle runtime exceptions gracefully, craft custom error types, write defensive code, and match patterns.
- Module 90/6 lessons
Object-Oriented Programming
Model real-world systems using classes, constructors, methods, inheritance, properties, and dunder protocols.
- Module 100/5 lessons
Protocols and Advanced Iteration
Build memory-efficient iterators, custom context managers, and type-annotated code.
- Module 110/6 lessons
Standard Library Power Tools
Solve practical problems using regex patterns, dates and times, randomness, and statistics.
- Module 120/10 lessons
Capstone Projects
Build complete, real-world Python applications end-to-end with clear architectural milestones.