The following code give error:TypeError: test_args_2() takes 1 positional argument but 2 were given
def test_args_2(x, **z):
print(x, z)
d={'a':4,
'b':5}
test_args_2(4, d)
Can we use positional and keyword same line?
The following code give error:TypeError: test_args_2() takes 1 positional argument but 2 were given
def test_args_2(x, **z):
print(x, z)
d={'a':4,
'b':5}
test_args_2(4, d)
Can we use positional and keyword same line?