Python Puzzle 4

· by

What is the output of

def foo(bar=None, **kwargs):
    print("\tbar={}".format(bar))
    print("\tkwargs={}".format(kwargs))


print("Test 1:")
foo(bar=12, holla=13)

print("Test 2:")
foo(holla=13, bar=12)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Output:

Test 1:
    bar=12
    kwargs={'holla': 13}
Test 2:
    bar=12
    kwargs={'holla': 13}