I am a little stuck on the is_int code. It fails on -2 saying the code below returns None when it should return True.
x = x % 1
if x == 0:
I have run print(-2 % 1) through python on my machine and it is coming out as 0!
Any information would be much appreciated.