Review: Built-In Functions. type(n) == int or type(n) == float:


#1



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

if type(n)== int or float:
return abs (n)
else:
return "nope"

why is this a wrong code

Replace this line with your code.


#2

This question has been asked several times...
Check this thread...

I hope it helps you.

Note:
You have to define a function in this exercise.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.