isdigit() method in Python
The isdigit() method returns value True if all characters in the string are digits (0-9).
Syntax
string.isdigit()
No Parameters
The following example shows, characters in the string are digits or not.
Example
a = "10200" b = a.isdigit() print(b)
Output
True