def f(a=1, b=2): print(a) print(b) # both are equivalent f(*[0], **{'b': 3}) print('-----') f(0, b=3)