Im trying to make a function that takes from 1 up to 5 arguments and does different calculations depending on the number given. My idea was something like this:
def function(*args)
num_of_args = (!!here is the problem!!)
if(num_of_args == 1) : result = a
else if(number_of_args == 2) : result = a+b
and so on I have tried to count number of arguments and assign that number to a variable but can't find a way I imagine that there is possibly no need to use 5 if's but I don't realy want to focus on it before I manage to count those arguments