Python

Explain how Python works, from mutability and closures to generators, packaging and async.

  1. 7 challenges

    Core Types

    Lists, tuples, dictionaries and sets, and the mutability rules that cause most Python surprises.

  2. 7 challenges

    Functions and Closures

    Arguments, comprehensions, scope, closures and decorators: writing Python functions well.

  3. 7 challenges

    Classes and Objects

    Python's object model: classes, dataclasses, special methods, properties and inheritance.

  4. 6 challenges

    Iterators and Generators

    How Python loops really work, lazy generators, and context managers for clean set-up and tidy-up.

  5. 7 challenges

    Errors and Tooling

    Exceptions, virtual environments, packaging, type hints and tests: the everyday Python toolkit.

  6. 5 challenges

    Concurrency and Async

    Threads, processes and asyncio in Python, and how the global interpreter lock shapes the choice.