Hey all. I'm on this exercise. I don't think I understand what needs to be done. This is what I've understood and this is my code.
def is_int(x): if not int(x): return True else: return False
From looking through the forums, I've found out that this is the answer
def is_int(x): if x-int(x)>0 or x-int(x)<0: return True else: return False
I have no idea what is being written here. I don't understand why LESS or MORE than 0 is determining if the number is an int or a float. Could someone explain in a simple way for me?