Geetting error in FUNCTION 19


def distance_from_zero(s):
if type(s)==int :
return abs(s)
return "Nope"

i am getting error while running this code in FUNCTIONS 19

Replace this line with your code.


You should check if type(s) is float, too.


thanks man.. i got it


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.