First Steps
Learn how to display text on the screen using the print() function. This is where every programmer starts their journey!
28 lessons · 121 exercises in the course · 65 open for free
Learn Python from scratch in your browser. The course has 28 lessons and 121 hands-on exercises; 65 of them are open for free — read the theory and the exercise statements without an account.
Python errors explainedLearn how to display text on the screen using the print() function. This is where every programmer starts their journey!
Learn how to store data in variables. Variables are like labeled boxes where you can put information.
Learn basic math operations in Python: addition, subtraction, multiplication, and division.
Learn to work with text (strings) in Python.
Learn to make decisions in your code using if/else statements.
Learn to repeat actions using loops.
Learn to store multiple items in lists.
Learn to create reusable blocks of code called functions.
Learn to store data as key-value pairs using dictionaries.
Learn about tuples - immutable sequences that cannot be changed.
Learn about sets - collections of unique items with no duplicates.
Learn useful string methods for text manipulation.
Learn to create lists in one line using list comprehensions.
Learn modern string formatting with f-strings.
Theory and exercises of these lessons are free: they open after you register with your email. Lessons unlock one after another.
Master the while loop: countdowns, break, continue and accumulators — the patterns behind real programs.
Real data is nested: lists inside lists, dictionaries inside lists. Learn to walk through it with double loops.
Programs meet bad data all the time. try/except lets your code survive errors instead of crashing.
Default values, any number of arguments, tiny lambda functions and sorting with a key — write functions like a professional.
Bundle data and behaviour together: your own types with attributes and methods — the heart of modern Python.
Four capstone challenges that combine everything: loops, collections, functions, classes. Finish them — and the course is truly yours.
Programs rarely live in memory only: they save notes, read settings and write logs. Here you practise the file workflow on a safe in-memory model.
Real programs are split into files so that code can be reused and names never collide. Learn how a module works by building small namespaces by hand.
Beyond catching errors: raise your own, name them well, validate input and use else and finally like a professional.
Programs talk to each other in JSON. Learn to read a response, check its status and survive a flaky server — with a safe local stand-in for the network.
Build a small game from scratch: scripted guesses, a tic-tac-toe board, a deterministic random generator and a game loop.
Learn how a chat bot works without a network or tokens: fake bot and fake updates, command handlers, routing through a dictionary and per-chat dialog state.
Capstone, part 1: build the data layer of an expense tracker — model classes, a ledger, saving to text and back, and a report.
Capstone, part 2: put a chat-bot (on stubs) on top of the expense tracker — commands, reports, export/import and the final assembly.
Yes. 65 of the 121 exercises and the theory of the free lessons are open to everyone, with no payment and no account needed to read them.
No. You write and run the code in the browser, so there is nothing to install.
The course has 28 lessons, from first steps and variables to loops and lists, with 121 practice exercises in total.
Start with the first lesson, “First Steps”: read the short theory, then solve its exercises in order.