. Advertisement .
..3..
. Advertisement .
..4..
I’m learning Python.Can you give me some examples to check if a number is whole number in python? Thank you.
Here is a suggestion for youif type(variable) == int or type(variable) == float:
isNumber = True
You could consider my suggestion here