Skip to course content
Free course

Python Foundations / Module 5

Module 5

Functions, Modules, and Readable Code

Refactor repeated logic into clear functions and modules.

Executable courseUse the text pages for explanation and the browser notebook for practice. Work stays in this browser unless you download it.

Module sequence

  1. Why Functions HelpUnit 1 · 18-25 minutes
  2. Parameters and ArgumentsUnit 2 · 22-30 minutes
  3. Scope and Side EffectsUnit 4 · 25-35 minutes
  4. Docstrings and Basic Type HintsUnit 5 · 22-30 minutes
  5. Objects, Attributes, and MethodsUnit 6 · 20-30 minutes
  6. Naming and Separating ConcernsUnit 9 · 25-35 minutes