Skip to content
String Methods

isalpha()

Check whether every character is a letter.

str.isalpha()

Check whether every character is a letter.

Returns

True when the string is non-empty and all characters are alphabetic; otherwise False.

Try it

Run it and change it
text = "Python"
print(text.isalpha())

Related entries