The check for ==int seems to be bypassed no matter how I try to do it - and I'm stumped!
The code is "accepted" by the module; I am not satisfied though because each time I try running I get no print of the absolute of the entered value as I expect, and the code jumps to the <else> line and executes.
I expect the entry of -9, or 9, to give a val of 9
I expect the entry of 9f to give Nope
global v v = "" def distance_from_zero(v): if type(v) == int or type(v) == float: return abs(v) print (abs(v)) else: print "Nope" return "Nope" kb = raw_input() distance_from_zero(kb)