I've tried many ways - This is my current code

def is_int(x):

if type(x) is int:

return True

elif x - round(x) > 0:

return False

elif x + round(x) < 0:

return False

elif x - round(x) == 0 or x + round(x) == 0:

return True

else:

return False

I Was hoping someone could put me in the right path?

Thankyou In advance