Source Code:
(back to article)
def print_args_and_kwargs(*args, **kwargs): for arg in args: print(arg) for key, value in kwargs.items(): print(f"{key} = {value}") print_args_and_kwargs(1, 2, 3, name="Alice", age=20)
Result:
Report an issue