how to check whether a number is decimal or not in python code example
Example 1: is int python
isinstance(n, int) # n = 9, Returns True / n = 5.5, Returns False
Example 2: w=how to tell if decimal in python
i = 100
f = 1.23
print(type(i))
print(type(f))
# <class 'int'>
# <class 'float'>