I have code like this
def my_pow(x=3, *, y=2):
return x**y
my_pow(4,4)
I know what *args
and **kwargs
mean, but have no idea what *
means between positional arguments.
Why my_pow(4,4)
doesn't work? Whereas all variants below do.
my_pow(4,y = 4)
my_pow(x = 4)
my_pow(y = 4)
my_pow(4)