python check if string is decimal code example
Example 1: w=how to tell if decimal in python
i = 100
f = 1.23
print(type(i))
print(type(f))
# <class 'int'>
# <class 'float'>
Example 2: decimal characters python
If a character can be used to form a number in base 10, then it's considered as decimal character.