Python sprawdź, czy postać to litera
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
Disturbed Dragonfly
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
str = "abc"
print(str.isalpha())
The isalpha() method returns True if all the characters are alphabet letters (a-z).