19. Review: Built-In Functions


#1

This is my code

def distance_from_zero(num):
return type(num) == int or type(num) == float:

max(2, 3, 4) # 4
min(2, 3, 4) # 2

abs(2) # 2
abs(-2) # 2

This is the 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
HELP!


#2

Can't tell if your code is broken because of formatting issues or just broken.
Test your code and see if it does what it's meant to. If you have error messages in the console, then read them and consider what they say.

If you need more help, then add a link to the exercise and post an intact version of your code (I may need to be able to copy it and run it, you should always make sure that code is intact when you share it though)