Built-In Functions


#1

def Distance_From_Zero(num):
Distance_From_Zero(num) == -10
if type(-10) == int:
abs(-10) # 10
elif type(-10) == float:
abs(-10) # 10
else:
"Nope"
got the following error

Oops, try again.
It looks like you have a NameError. Maybe you forgot to create a
function called distance_from_zero? Check the error message for more
info! - global name 'distance_from_zero' is not defined
Pls i need assistant on this..........


#2

Your function name is capitalized.


#3

still the same problem