def add(x,y): return x+y def add(x,y,z): return x+y*0 print(add(1,2,3)) print(add(1,2))
Standard input is empty
1
Traceback (most recent call last): File "./prog.py", line 11, in <module> TypeError: add() missing 1 required positional argument: 'z'