Program - Usge of *args


Topic: Program - Usge of *args

Solution

def a_func(*args):
    print('type of args:', type(args))
    print('args contents:', args)
    print('1st argument:', args[0])
a_func(0, 1, 'a', 'b', 'c')



List all Python Programs