hey @ayushU2x ,
if we make a function that accepts both args and kwargs .
like for example
def fun(*args,**kwargs)
on calling this function like
fun(1,1,2,2,sum=12,work=10)
so , on calling this function like this,
then args would become a list with values as ( 1,1,2,2 ) ( all non-keyword arguments )
and kwargs would be a dictionary {'sum':12,'work':10}
( all keyword arguments )
so , when printing with * , it prints the tuple , but it doesn’t work on dictionary and then it doesn’t works and results in an error.
I hope you understand this.
Thank You and Happy Learning