fork download
  1.  
  2. def add(x,y):
  3. return x+y
  4.  
  5.  
  6. def add(x,y,z):
  7. return x+y*0
  8.  
  9.  
  10. print(add(1,2,3))
  11. print(add(1,2))
Runtime error #stdin #stdout #stderr 0.12s 23732KB
stdin
Standard input is empty
stdout
1
stderr
Traceback (most recent call last):
  File "./prog.py", line 11, in <module>
TypeError: add() missing 1 required positional argument: 'z'