Program - usage of kwargs


Topic: Program - usage of kwargs

Solution

def b_func(**kwargs):
    print('type of kwargs:', type(kwargs))
    print('kwargs contents: ', kwargs)
    print('value of argument a:', kwargs['a'])
b_func(a=1, b=2, c=3, d=4)



List all Python Programs