My code keeps throwing the following error: "Your function fails on is_int(-2). It returns False when it should return True."
Here's my code:
def is_int(x): if type(x) is int and (x-x) > 0: return True else: return False
I've been stuck on this lesson a LONG time and I've looked all over the web and have found nothing that's been super useful. please help =(