isdigit(), isdecimal(), isalpha()
.isdigit()
Checks if all characters in string is digit
.isdecimal()
Is decimal works the same way as .isdigit()
.isalpha()
Checks if all characters in the text are letters
Last updated