In this exercise, we want to check if x is an integer. So my idea is to first create a variable y that is equal to x rounded. Example: x=5.6 => y=5.0
But up to now, I think I haven't seen a function that does that, so how am I supposed to do that?
def is_int(x): #I first want to create a variable y that is x rounded y= if x-y == 0: return True else: return False
Can someone tell me if I am trying to do the right thing here? And if maybe I missed that function in the previous lessons...
Thanks in advance