Why isn't my code being accepted?
def is_int(x): if x == int(x): print True elif abs(x) == int(x): print True else: print False
When I call the function with -2 it returns "True" but I keep getting an error message that says:
"Oops, try again.Your function fails on is_int(-2). It returns None when it should return True."