19/19 Help!


#1

def distance_from_zero(command):
    
    if type(command) == int:
        return abs(command)
        
    elif type(command) == float:
        return abs(command)
        
    else:
        return "nope"

Oops, try again. Your function seems to fail on input True when it returned 'nope' instead of 'Nope'
Can someone please help? I'm not sure what they want me to change,


#3

Wow, I'm stupid. So sorry for anyone reading this


#4

To mark this post solved, I will write the solution which is that the user was doing:

return "nope"

instead of "Nope".