Exercise Practice Makes Perfect #3
My code errors saying that my function is_int(-2) fails. Returns False when it should return True.
I thought my first if statement took care of this since -2 is an integer
def is_int(x): if x == int: return True elif x == float: return True elif abs(x) == str(x) + "." + "0": return True else: return False