Introduction Return True if the string has only one characters. Syntax str.isalpha('x')-> bool Parameters x=string Examples The method can be tested these ways.
The method tested that whether the string is single character.
if statement The method is tested through if statement.
class.....: def __init__()......:....str.isapha()==True The function tested whether the string value is single word, or contain non-string values through input().
| String Functions
|