isalpha()
Python String isalpha() Method
Last Updated : 30 Dec 2025
Python isalpha() method returns true if all characters in the string are alphabetic. It returns False if the characters are not alphabetic. It returns either True or False.
Syntax of Python String isalpha() Method
It has the following syntax:
Parameters
No parameter is required.
Return
It returns either True or False.
Different Examples for isalpha() Method in Python
Let's see some examples of isalpha() method to understand it's functionalities.
Example 1
Let us take an example to demonstrate the isalpha() Method in Python.
Output:
Example 2
Let us take another example to demonstrate the isalpha() Method in Python.
Output:
Example 3
Here, we are going to demonstrate the working of isalpha() Method in Python.
Output:
String contains alphabets