19. review built in functions


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

19. Review: Built-In Functions Pls Help!

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


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