I continually receive the message "Oops, try again. Your function fails on is_int(-2). It returns False when it should return True." -- I figured that my absolute value reference would solve for negative integers but that does not seem to be the case!
def is_int(x): if abs(x) == int: return True elif abs(x) == str(x) + "." + "0": return True else: return False