Python OOPs


Python SQLite


Examples


Others


isalpha() method in Python


The isalpha() method returns the value True if all the characters are alphabet letters (a-z).

Syntax
string.isalpha()

No Parameters

Example with only alphabets.

Example
a = "RamKumarA"
b = a.isalpha()
print(b)

Output

True

Example with alphabets and numbers.

Example
a = "RamKumar20"
b = a.isalpha()
print(b)

Output

false

Python String Methods