Остаток идентифицирует Python

n = 23 #(whatever number you want)
if n%1 == 0:
    print("True. n is an integer")
else:
    print("False. n is not an integer")
Cloudy Chipmunk