python string is letter code example
Example 1: python check if character is letter
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
Example 2: isaplha in python
str = "abc"
print(str.isalpha())
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
str = "abc"
print(str.isalpha())