Error message: Oops, try again. Your function fails on is_int(-2). It returns False when it should return True.
I am stuck and I am honestly not sure which part of the code is wrong. Please help.
def is_int(x): y = x % 1 y = str(y) y=y.replace('.','0') for i in y: if i != 0: return False else: return True