Review: Built-In Functions - Error don't make sense


#1



https://www.codecademy.com/en/courses/python-beginner-c7VZg/4/3?curriculum_id=4f89dab3d788890003000096#


The error doesn't make sense at all = Oops, try again. Your function seems to fail on input True when it returned 'Nope.' instead of 'Nope'

My code:

def distance_from_zero(n):
    if type(n) == int or type(n) == float:
        return abs(n)
    else:
        return "Nope."


#2

Hi this line

 return "Nope."

As the error says..
...Your function seems to fail on input True when it returned 'Nope.' instead of 'Nope'
Remove the dot after Nope


#3

OMG!!! That small little dot! Thanks a lot! hahahhaha