Light Mode
Dark Mode
Stuck with error in prewritten code

Here's my code:

def checkio(*args): if args:

   return (max(args) - min(args))

else:

    return '0'

And I am getting the error:

TypeError: '<' not supported between instances of 'float' and 'str' almost_equal, 11 <module>, 16

Does this mean there is an error in the self-checking code?

Created: Dec. 31, 2018, 1:54 a.m.
Updated: Dec. 31, 2018, 10:07 a.m.
0
4
User avatar
darelleman