Python string isalpha() method
Check whether every character is a letter.
Syntax
str.isalpha()
Letters from any alphabet count. Spaces do not.
Parameters
None.
Return value
bool
Example
Code
print("Sita".isalpha(), "Sita Gurung".isalpha(), "ñandú".isalpha())
Output
True False True
Related
Learn it step by step in the free lesson Strings, with exercises that check your answers.