# def function_name_print (a,b,c,d,e):
# print (a,b,c,d,e)
def funargs(normal, *arg, **kwargs): # remembar always normal argument should at first otherwise it will give error
# fist should be normal then args then ar last should be kwargs.
# print (arg[0])
# print (type(arg))
print(normal)
for item in arg:
print(item)
print("i would like to introduse some heros")
for key, value in kwargs.items():
print(f"{key} is a {value}")
# function_name_print("harish","shankar","raju","rajesh","kutti")
har = ["harish", "shankar", "raju", "rajesh", "kutti", "vijay"]
kw = {"harish": "school leader", "sawan": "house leader", "tushar": "class leader"}
normal = "iam a normal arguement"
funargs(normal, *har, **kw)
Comments
Post a Comment