19. review built in functions


#1

So, what names are valid for variable like this? Why integer isn't valid in this situation?


19. Review: Built-In Functions Pls Help!
#2

if the name exist of numbers alone, python interprets it as integer data type.


#3

Thank you! I've done it))
def distance_from_zero(num):
if type(num) == int or type(num) == float:
return abs(num)
else:
return "Nope"


#4