String
str.isdigit()
Return True if all characters in the string are digits and there is at least one character, False otherwise.
>>> "3".isdigit()
True
>>> "a".isdigit()
False
str.isdigit()
Return True if all characters in the string are digits and there is at least one character, False otherwise.
>>> "3".isdigit()
True
>>> "a".isdigit()
False