Python: Programming, Automation and Data Analysis
Exit

Lesson 5 of 14 · Structuring your code

Fonctions : paramètres, valeurs par défaut, *args, **kwargs, portée et docstrings

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

This lesson has not been translated yet: it is shown in French.

Objectif

Écrire une fois, utiliser partout : regrouper un calcul (TVA, conversion, frais de livraison) dans une fonction claire, documentée et testable, maîtriser les différentes façons de lui passer des paramètres, et comprendre où vivent les variables.

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.