PY

Python — Intermediate

IntermediatePython 3.11+ · 9 lessons

Write Python the way professionals do: handle errors cleanly, model data with classes and dataclasses, process files and JSON, use generators for large data, add type hints, call web APIs and test your code with pytest.

Lessons

  1. 1Errors & Exceptionstry / except / else / finally, raising errors and custom exception classes.Solution4-question quiz
  2. 2Classes & DataclassesBundle data and behaviour with classes; remove boilerplate with @dataclass.Solution4-question quiz
  3. 3Files, Paths, CSV & JSONNavigate the file system with pathlib and convert between CSV and JSON.Solution4-question quiz
  4. 4Regular ExpressionsMatch, validate, extract and replace text patterns with the re module.Solution4-question quiz
  5. 5Iterators, Generators & ComprehensionsProcess large data lazily with generators, yield and itertools.Solution4-question quiz
  6. 6Data Analysis with pandasLoad, filter, group, join and summarise tabular data with DataFrames.Solution4-question quiz
  7. 7Type Hints & mypyAdd types to functions and data, then let mypy find bugs before you run the code.Solution4-question quiz
  8. 8Calling Web APIsMake HTTP requests, handle errors and timeouts, and work with JSON responses.Solution4-question quiz
  9. 9Testing with pytestWrite automated tests with plain assert statements, fixtures and parametrize.Solution4-question quiz
Start with lesson 1 →
Ask AI