Function Details: isalpha

Description


Return True if all characters in the string are alphabetic and there is at least one character, False otherwise.


Extended Description


The isalpha() method checks if all the characters in the string are alphabetic (letters). It returns True if all characters are alphabetic and the string is not empty, and False otherwise. Numbers, spaces, symbols, and punctuations are not considered alphabetic.


Read More about isalpha from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Return


Returns a boolean indicating whether all characters in the string are alphabetic.


Return Type


bool

Output

Explanation

This example demonstrates the basic usage of isalpha(). It returns True because all characters are letters.