Your code is testing whether the entered number is divisible by 10.
To test whether a number is an integer, try comparing it to its
trunc
ated version:
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
:
if num_a % 1 == 0: