To test whether a number is an integer, try comparing it to its

`trunc`

ated version:Python

Copy Code

`if num_a == math.trunc(num_a):`

You'll need to make sure you have `import math`

at the top of your code.Otherwise, if you have to stick with the modulo operator, test whether the number is divisible by

`1`

instead of `10`

:Python

Copy Code

if num_a % 1 == 0: