Quick actions

cmd+k|ctrl+k

Navigation

Languages

*arg and **kwarg

Snippet info

Language

Python

Visibility

public

Author

ankushsahu203

Created

2026-07-22T06:42:28.527719Z

Updated

2026-07-23T04:59:56.008809Z

def super_fun(*args,**kwargs):
    total=0
    for item in kwargs.values():
        total+=item
   
    return sum(args)+total
print(super_fun(1,2,3,4,5,num1=5,num2=10))
  
INFO