def foo(a, b): print(f'a is {a}, b is {b}') foo(a=1, b=2) # ok foo(x=1, y=2) # erro
Standard input is empty
a is 1, b is 2
Traceback (most recent call last): File "./prog.py", line 5, in <module> TypeError: foo() got an unexpected keyword argument 'x'