Start free

PythonAdvancedAdvanced stage34 hoursPro

Advanced Python

Write Python like a senior engineer: idioms, performance, concurrency, testing, packaging and APIs.

Start the free previewLabs run in your browser. No installs.

What you will be able to do

  • Use iterators, generators and decorators
  • Profile and speed up code
  • Test, type-check and lint
  • Package and serve code as an API

Tools

  • pytest
  • mypy
  • ruff
  • asyncio
  • FastAPI
  • Poetry/uv
  • Docker

Syllabus — 6 modules

  1. Pythonic idioms

    Iterators, generators and context managers let you process data streams lazily and cleanly.

    Iterables and iterators · Generators and yield · itertools and functools · Context managers · Decorators · Closures

  2. Typing and code quality

    Type hints and linters catch bugs before runtime and make large codebases navigable.

    Type hints, generics, Protocol · mypy and pyright · ruff for linting and formatting · pydantic for validation · Project layout

  3. Testing

    Tests are how you change code without fear. pytest makes them short and readable.

    pytest basics and fixtures · Parametrised tests · Mocking · Coverage · Testing data pipelines · Property-based testing with Hypothesis

  4. Performance

    Measure first. Then vectorise, cache, or move hot loops to compiled code.

    Big-O for practitioners · timeit and cProfile · Vectorisation with NumPy · functools.lru_cache · Numba and Cython overview · Memory profiling

  5. Concurrency

    Threads suit I/O-bound work, processes suit CPU-bound work, asyncio suits many concurrent network calls.

    The GIL and free-threaded Python · threading and concurrent.futures · multiprocessing · asyncio, async/await · httpx for async HTTP

  6. APIs, packaging and deployment

    Data products are often served as APIs. Package your code, containerise it and ship it.

    REST concepts · FastAPI endpoints and validation · Calling APIs with requests and httpx · Packaging with pyproject.toml · Docker basics · Environment variables and secrets

How you are assessed

Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.

Where it sits in the Python track

  1. Python Programming Beginner
  2. Data Analysis with Python Intermediate
  3. Advanced Python (this course) Advanced
  4. Advanced Data Analysis with Python Advanced

Part of these career paths

Start learning

Questions and answers

How long does the Advanced Python course take?
About 34 hours across 6 modules, at your own pace. At five hours a week most learners finish in 7 weeks.
Is Advanced Python free?
The first module is a free preview. The full course is part of Pro, or a friend's invite can unlock its whole track for up to three months using referral points.
Do I get a certificate for Advanced Python?
Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
What should I know before starting Advanced Python?
It follows Data Analysis with Python in the Python track. If Python is new to you, start with Python Programming.
What will I be able to do after Advanced Python?
Use iterators, generators and decorators; Profile and speed up code; Test, type-check and lint.