0

what is meant by this error "SyntaxError: positional argument follows keyword argument" ?

7th Apr 2020, 10:54 AM
sai
2 Respuestas
+ 1
When calling a function, you must call positional arguments before keyword arguments. So if you have def func(x, y): ... you can't call the function using func(y=0, x) y=0 would be a keyword argument here, and x would be a positional argument. func(x, y=0) would be fine.
7th Apr 2020, 12:08 PM
Russ
Russ - avatar