PythonStringisalpha

Returns True if all characters are alphabetic.

Syntax

str.isalpha()

Example

Enter values below to update the example in real time.

print
isalpha
print("hello".isalpha())   # True
print("hello1".isalpha())  # False