if type(n) == int or type(n) == float:
print "The absolute value of the input is ", abs(n)
print "Not an integer or float!"
This is the latest code I did. I did this under Python 3.5. The problem is the error shows up as:
Oops, try again. Your function seems to fail on input True when it returned 'None' instead of 'Nope'
What is the problem here?