Practice
Python Practice
Every exercise, quiz, and project in one place. Work through a part's exercises after reading it, and come back here to revise.
Python workbench — write and run code here
Press Run and Python 3.14 loads right in your browser (a one-time download of about 15 MB; after that it works offline). Your code never leaves this page. input() opens a small prompt window.
Exercises by part
Part 01 · 6 exercises · 7 quick quizzesHow Python runsPart 02 · 8 exercisesLanguage fundamentalsPart 03 · 7 exercisesControl flowPart 04 · 8 exercisesData structuresPart 05 · 8 exercisesFunctionsPart 06 · 7 exercisesErrors and exceptionsPart 07 · 7 exercisesModules and environmentPart 08 · 8 exercisesFiles, text and data formatsPart 09 · 8 exercisesObject-oriented PythonPart 10 · 8 exercisesPythonic and functional PythonPart 11 · 7 exercisesTesting and code qualityPart 12 · 8 exercisesWeb, APIs and databasesPart 13 · 8 exercisesConcurrencyPart 14 · 8 exercisesPython internalsPart 15 · 6 exercisesAdvanced typing and errorsPart 16 · 6 exercisesPackaging and modern PythonPart 17 · 20 exercisesData structures and algorithms in Python
Projects
After Part 8Stage 1 Project: Expense Tracker (CLI)After Part 12Stage 2 Project: Library Manager (CLI)After Part 16Stage 3 Project: Async Web Scraper (CLI)