All argument types

Question

Write a function with required, default, packed, and keyworded arguments.

in progress 0
YashikaKhurana 4 years 1 Answer 647 views Master 0

Answer ( 1 )

  1. def func5(x,y,z,*args, d=20, e=21,**kwargs):
    print(x)
    print(y)
    print(z)
    print(args)
    print(d)
    print(e)
    print(kwargs)

Leave an answer

Browse
Browse