I\'m new in Python and wants to know if there is a simple way to get amount of passed parameters in Python function.
a(1, 2, 3) ==>3 a(1, 2) ==>2
def a(*args, **kwargs): print(len(args) + len(kwargs))