When I run the following code, I get an error, why? Wrong argument order?
def f(a, b, c, d):
print a, b, c, d
f(1, b=2, *(3,), **{'d': 4})
This is the error I get:
Traceback (most recent call last):
File "/home/asad/scripts/l.py", line 9, in <module>
f(1, b=2, *(3,), **{'d': 4})
TypeError: f() got multiple values for keyword argument 'b'
[Finished in 0.1s with exit code 1]
source
share