*Args and **Kwargs

 


def Fun_Fact(normal,*args,**kwargs):
print(normal)
for items in args:
print(items)
for key,value in kwargs.items():
print(key,value)



a="I am normal "
b=["kartik","ayush",'aman',"Piyush","Meetha","Rohit"]

c={"kartik":"Photoshop","Aman": "Driver","jay":"cook"}

Fun_Fact(a,*b,**c)

Comments

Popular posts from this blog

Healthy Programmmer PROJECT

Difference Between Procedural and Non-procedural Language

Dictionary Practice Question