Lesson 5 of 14 · Structuring your code
Functions: parameters, default values, *args, **kwargs, scope and docstrings
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.