Python String isalpha()

The syntax of isalpha() is:

string.isalpha()

isalpha() Parameters

isalpha() doesn't take any parameters.


Return Value from isalpha()

The isalpha() returns:

  • True if all characters in the string are alphabets (can be both lowercase and uppercase).
  • False if at least one character is not alphabet.

Example 1: Working of isalpha()

Output

True
False
False

Example 1: Working of isalpha()

Output

All characters are alphabets

Checkout these related String methods as well: