The isalpha() method in Python String checks whether the string consists of alphabetic characters only. In Python string, the isalpha() method is built-in and is utilized for string handling. This method of Python string is known to return “True” if every character within the string is an alphabet else, It returns “False”.
Here is the syntax for islpha() method −
This method returns true in case all characters are alphabetic in the string and there lies at least one character, otherwise, it would return false.
The following example makes use of isalpha() method.
str = "this"; # No space & digit in this string
str = "this is string example....wow!!!";
When we run above program, it produces following result:
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.