Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pass a real dictionary

def func(**kw):
    print(kw)

func(a = 23,
    b = 19,)

z = {
    'c': 10,
    'd': 20,
}

func(z = z)

func(**z)

Output:

{'a': 23, 'b': 19}
{'z': {'c': 10, 'd': 20}}
{'c': 10, 'd': 20}