Python
From your first script to idiomatic, tested and concurrent Python.
Module 1
Fundamentals
- 1.1Install and run Python
- 1.2Syntax and indentation
- 1.3Variables and core types
- 1.4Conditionals and loops
- 1.5Functions
- 1.6Strings and f-strings
- 1.7Assignment expressions (:=)Optional
Practice
- BeginnerGuess the numberLoops and conditions that react to input.
- BeginnerUnit converterTurn text into numbers and back, safely.
- BeginnerBill splitterFormat money and numbers for people.
- EasyPassword checkerWrite rules as small, testable functions.
Module 2
Data structures
- 2.1Lists and tuplesSoon
- 2.2Dictionaries and setsSoon
- 2.3ComprehensionsSoon
- 2.4UnpackingSoon
- 2.5The collections moduleMust knowSoon
- 2.6DataclassesMust knowSoon
- 2.7Pattern matchingMust knowSoon
Practice
- EasyText statisticsCount and rank things with the right structure.
- EasyContact bookModel records instead of juggling loose values.
- EasyGradebookTransform data with comprehensions.
- IntermediateText adventureParse commands with pattern matching.
Module 3
Organizing code
- 3.1Modules and packagesSoon
- 3.2Virtual environmentsSoon
- 3.3Dependencies and pyproject.tomlSoon
- 3.4ExceptionsSoon
- 3.5Exception groups (except*)OptionalSoon
- 3.6Files and pathlibSoon
- 3.7Context managersSoon
Practice
- IntermediateTo-do list in the terminalPersist state between runs without losing data.
- EasyCSV sales reportRead real files and survive bad rows.
- IntermediateDownloads organizerAutomate the file system with pathlib.
- IntermediatePublish a packageShip code others can install.
Module 4
Idiomatic Python
- 4.1Classes and objectsSoon
- 4.2The data model (dunder methods)Soon
- 4.3Iterators and generatorsSoon
- 4.4DecoratorsSoon
- 4.5Type hintsMust knowSoon
- 4.6Generic syntax (class Box[T])OptionalSoon
Practice
- IntermediateBank accountDesign classes that protect their own rules.
- IntermediateRetry decoratorAdd behaviour to functions without touching them.
- HardVector typeMake your own types feel built in.
- HardLazy data pipelineProcess data that does not fit in memory.
Module 5
Tooling and quality
- 5.1Testing with pytestSoon
- 5.2Linting and formattingMust knowSoon
- 5.3Type checkingMust knowSoon
- 5.4LoggingSoon
- 5.5DebuggingOptionalSoon
Practice
- EasyRoman numerals with TDDLet tests drive the design.
- IntermediateLog analyzerStream big files and prove the parser works.
- HardHarden a codebaseRaise quality on code you did not write.
Module 6
Concurrency
- 6.1The GILSoon
- 6.2Threads and processesSoon
- 6.3asyncioMust knowSoon
- 6.4Task groupsOptionalSoon
- 6.5Free-threaded PythonOptionalSoon
Practice
- IntermediateConcurrent link checkerDo hundreds of slow things at once.
- HardImage thumbnailerUse every CPU core for heavy work.
- HardChat serverKeep many connections alive and clean up after them.
- ProfessionalGIL vs free threadingMeasure before you trust a performance claim.
Module 7
Specialize
- 7.1Build for the web
- 7.2Talk to a database (ORMs)Must know
- 7.3Work with dataMust know
Practice
- HardURL shortener APIBuild a small, complete web service.
- HardData cleaning reportTurn messy data into answers.
- ProfessionalProduction-ready serviceShip something you would run for real users.