isAlpha
Callable
Parameters
str: string
The string to check for alphabetic characters.
optionalextra: string
Extra characters that are allowed.
Returns boolean
str
consists of alphabetic characters.
The string to check for alphabetic characters.
Extra characters that are allowed.
str
consists of alphabetic characters.
Check whether given
str
is alphabetic string.The allowed characters are A-Z, and a-z.
Example