PyDocs

Nav

Python Runtime Services

str.isalpha

builtins

method of str
  • str.isalpha()
Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are
alphabetic and there is at least one character in the string.
1 Example
>>> 'Letters and spaces'.isalpha()
False
>>> 'LettersOnly'.isalpha()
True
>>> 'µ'.isalpha()  # non-ASCII characters can be considered alphabetical too
True
from the Python docs
See Also
No see-alsos for builtins/str.isalpha
0 Notes
No notes for str.isalpha