Isdigit() method in Python String Module
Isdigit method in string module returns the output as TRUE if the string has only digits. Any other decimals, characters or alphabets in the string return the output as FALSE.
Syntax:
str.isdigit()Example-1:
text = "580045"
x = text.isdigit()
print(x)
Output:

Example-2:
text = "580.45"
x = text.isdigit()
print(x)
Output:
