Learn Python from scratch. 10 modules covering variables, control flow, functions, data structures, OOP, and real projects — all with hands-on exercises.
7-day free Pro trial included
Install Python, understand the interpreter, write your first program, and learn how Python code executes.
Master Python's core data types — integers, floats, strings, booleans — and how to store, name, and operate on values.
Explore Python's powerful string operations: indexing, slicing, formatting, and the most useful built-in string methods.
Control how your program makes decisions and repeats actions using if/elif/else, for loops, while loops, and loop control statements.
Define and call functions, master Python's flexible argument system (positional, keyword, *args, **kwargs), understand scope, and write clean docstrings.
Master Python's four built-in collection types, learn when to use each, and write idiomatic comprehensions for concise data transformation.
Write robust programs that handle unexpected situations gracefully using try/except, and read and write files on disk.
Design programs around classes and objects. Learn encapsulation, inheritance, polymorphism, and Python's special dunder methods.
Organize code across multiple files, create reusable packages, and leverage Python's rich standard library for everyday tasks.
Write code that is idiomatic, readable, and efficient. Cover generators, decorators, itertools, PEP 8, and testing fundamentals.