Python
From your first script to idiomatic, tested and concurrent Python.
Legend
- RequiredRequiredThe core path, follow it in order
- Must knowMust knowYou should know it
- RecommendedRecommendedOur pick: useful and worth your time
- Worth a lookWorth a lookNot a priority: learn it when you can
- OptionalOptionalAn alternative: you can skip it
Fundamentals
- RequiredInstall and run Python
- RequiredSyntax and indentation
- RequiredVariables and core types
- RequiredConditionals and loops
- RequiredFunctions
Data structures
- RequiredLists and tuplesSoon
- RequiredDictionaries and setsSoon
- RequiredComprehensionsSoon
- RequiredUnpackingSoon
- Must knowThe collections moduleSoon
- Must knowMinimum version3.7DataclassesSoon
- Must knowMinimum version3.10Pattern matchingSoon
Organizing code
- RequiredModules and packagesSoon
- RequiredVirtual environmentsSoon
- RequiredDependencies and pyproject.tomlSoon
- RequiredExceptionsSoon
- OptionalMinimum version3.11Exception groups (except*)Soon
- RequiredFiles and pathlibSoon
- RequiredContext managersSoon
Idiomatic Python
- RequiredClasses and objectsSoon
- RequiredThe data model (dunder methods)Soon
- RequiredIterators and generatorsSoon
- RequiredDecoratorsSoon
- Must knowMinimum version3.5Type hintsSoon
- OptionalMinimum version3.12Generic syntax (class Box[T])Soon
Tooling and quality
- RequiredTesting with pytestSoon
- Must knowLinting and formattingSoon
- Must knowType checkingSoon
- RequiredLoggingSoon
- OptionalDebuggingSoon
Concurrency
- RequiredThe GILSoon
- RequiredThreads and processesSoon
- Must knowMinimum version3.7asyncioSoon
- OptionalMinimum version3.11Task groupsSoon
- OptionalMinimum version3.14tFree-threaded PythonSoon
Specialize
- Required
- Must know
- Must know
Build these as you go: each one needs what you studied up to its stage. Open one to see what it asks for.