isnumeric() method in Python
The isnumeric() method returns True if the string is a lowercase, and False when it only contains negative values(-1) and float(3.4) are not considered numeric values.
Syntax
string.isnumeric()
No Parameters
The following example shows, the string is numeric or not.
Example
a = "123456" b = "hello001" print(a.islower()) print(b.islower())
Output
True False