0
what is meant by this error "SyntaxError: positional argument follows keyword argument" ?
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.