• Why TypeError is caused

Question related to mission The Most Numbers


My code is bellow and "" TypeError: 'float' object is not iterable, checkio, 7 "" is displayed. But I don't understand why this happened.please tell me.

def checkio(*args):

if len(args) == 0: return 0 else:

M = max(*args)
m = min(*args)
d = M - m
return d