No problems with my code for the paramaters of the exercise, however I did notice a little hiccup in the code, and I was curios as to why it was happening.
def is_int(x): if x == int(x): return True elif (x - round(x, 1)) > 0: return True else: return False
I was testing my code with my own choice of numbers and printing the result on the console, for some reason
is_int(.0124378324) or really any random float with more than one number after the “.” will return true instead of false.
Is this due to my code having it round to the nearest decimal place?