Python

From your first script to idiomatic, tested and concurrent Python.

  • 7 modules
  • 40 lessons
  • 26 projects

Start the courseSee the roadmap

  1. Module 1

    Fundamentals

    1. 1.1Install and run Python
    2. 1.2Syntax and indentation
    3. 1.3Variables and core types
    4. 1.4Conditionals and loops
    5. 1.5Functions
    6. 1.6Strings and f-strings
    7. 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.
  2. Module 2

    Data structures

    1. 2.1Lists and tuplesSoon
    2. 2.2Dictionaries and setsSoon
    3. 2.3ComprehensionsSoon
    4. 2.4UnpackingSoon
    5. 2.5The collections moduleMust knowSoon
    6. 2.6DataclassesMust knowSoon
    7. 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.
  3. Module 3

    Organizing code

    1. 3.1Modules and packagesSoon
    2. 3.2Virtual environmentsSoon
    3. 3.3Dependencies and pyproject.tomlSoon
    4. 3.4ExceptionsSoon
    5. 3.5Exception groups (except*)OptionalSoon
    6. 3.6Files and pathlibSoon
    7. 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.
  4. Module 4

    Idiomatic Python

    1. 4.1Classes and objectsSoon
    2. 4.2The data model (dunder methods)Soon
    3. 4.3Iterators and generatorsSoon
    4. 4.4DecoratorsSoon
    5. 4.5Type hintsMust knowSoon
    6. 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.
  5. Module 5

    Tooling and quality

    1. 5.1Testing with pytestSoon
    2. 5.2Linting and formattingMust knowSoon
    3. 5.3Type checkingMust knowSoon
    4. 5.4LoggingSoon
    5. 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.
  6. Module 6

    Concurrency

    1. 6.1The GILSoon
    2. 6.2Threads and processesSoon
    3. 6.3asyncioMust knowSoon
    4. 6.4Task groupsOptionalSoon
    5. 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.
  7. Module 7

    Specialize

    1. 7.1Build for the web
      • FastAPISoon
      • DjangoSoon
      • FlaskSoon
    2. 7.2Talk to a database (ORMs)Must know
      • SQLAlchemySoon
      • SQLModelSoon
      • Tortoise ORMSoon
    3. 7.3Work with dataMust know
      • pandasSoon
      • PolarsSoon
      • NumPySoon

    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.