what does isalpha do in python code example
Example 1: isalpha function in python
string.isalpha()
Parameters:
isalpha() does not take any parameters
Returns :
1.True- If all characters in the string are alphabet.
2.False- If the string contains 1 or more non-alphabets.
Example 2: isaplha in python
str = "abc"
print(str.isalpha())
Example 3: what does isalpha do in python
The isalpha() method returns True if all the characters are alphabet letters (a-z).