def multi(*args): fact = 1 count = 1 for i in args: if type(i) == type(1) or type(i) == type(1.0): fact*=i count +=1 else: return "{}".format(count) return fact