Ok let's do this and you will see you have an issue,
# ValueError: invalid literal for int() with base 10: 'a'
Now I do not blame you, but they did a terrible job asking us to define a function that determines if something is an integer.
In order to properly do this you need to use
try as follows
print("You failed to enter a valid entry!")
Now this does not tell us if it is explicitly an int type, this will
This Function returns the data if it is a whole number positive/negative or zero
return int(data) if data % 1 == 0 else False