def mulx(*args): s = 1 if len(args) == 0: print("Input one number at least") raise TypeError for i in args: if not isinstance(i, (float, int)): raise TypeError("Bad operand type") s = s * i print("the result is :{:.2f}".format(s)) return sl_01 = [2,3,4,2,1.4,9.9,9.5,3,1]result_01 = mulx(*l_01)
緣定さんせぃ様