[quote=@DarkwolfX37] Explain without just giving the code how to make a program that determines whether a number is an integer or not. [/quote] If the input is guaranteed to be a number (i.e. no strings)? Check and see if the variable modulus 1 is equal to zero. Because all ints are multiples of 1, it will only evaluate as True for those values. Caveat: values such as 20.0 will be accepted because they're mathematical integers, even if their data type is float. If you want the data type to match as well, you could use the isinstance function to check.