Returns a Boolean stating whether the string contains only letters.
str. isalpha()
bool
#TODO
For 8-bit strings, this method is locale-dependent. Returns False if string is empty.
>>> ''.isalpha()
False
>>> 'abc123'.isalpha()
False
>>> 'abc'.isalpha()
True
>>> '123'.isalpha()
False
>>> 'Abc'.isalpha()
True
>>> '!@#'.isalpha()
False
>>> ' '.isalpha()
False
>>> 'ABC'.isalpha()
Trueisalnum(), isalpha(), isdigit(), islower(), isspace(), istitle(), isupper()