fork download
  1. def foo(a, b):
  2. print(f'a is {a}, b is {b}')
  3.  
  4. foo(a=1, b=2) # ok
  5. foo(x=1, y=2) # erro
Runtime error #stdin #stdout #stderr 0.13s 23452KB
stdin
Standard input is empty
stdout
a is 1, b is 2
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
TypeError: foo() got an unexpected keyword argument 'x'