[ How to find the number of arguments in a Python function ]
def no_of_argu(*args): # using len() method in args to count return(len(args)) a = 1
b = 3 # arguments passed
n = no_of_argu(1, 2, 4, a) # result printed
print(" The number of arguments are: ", n)