*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

React Installation with Vite and Tailwind css (Steps to Installation)

Insert Data In mongoDb

Class methods as an alternative Constructor