def super_func(**kwargs): print(sum(kwargs)) super_func(num1 =1, num2=2)
Error:TypeError Traceback (most recent call last)
<ipython-input-195-6c0cf9eea71e> in <module>
----> 1 super_func(num1 =1, num2=2)
<ipython-input-193-52558c3658cd> in super_func(**kwargs)
1 def super_func(**kwargs):
----> 2 print(sum(kwargs))
TypeError: sum() missing 1 required positional argument: 'num2'
Can you please help me with this error
buran write Jan-06-2021, 03:51 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.