my_file.py

def add(a, b, c=0):
    return a + b + c
>>> add(1,2)  ## deux arguments ✅
3

>>> add(1,2,3)  ## trois arguments ✅
6

Valeur par défaut