Light Mode
Dark Mode
Why TypeError is caused

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
Created: March 23, 2016, 5:27 p.m.
Updated: July 1, 2019, 8:45 a.m.
0
10
User avatar
yuhhei1989