Python: Programming, Automation and Data Analysis
Exit

Lesson 5 of 14 · Structuring your code

Functions: parameters, default values, *args, **kwargs, scope and docstrings

1 h 5 min Python 3.12 (Debian, git, pip)

Objective

Write once, use everywhere: group a calculation (VAT, conversion, delivery fees) in a clear, documented and testable function, master the different ways of passing it parameters, and understand where variables live.

This lesson is part of the full course

Unlock Python: Programming, Automation and Data Analysis to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.