isalpha() Function in python checks whether the string consists of alphabetic characters.lets see an example of python isalpha() Function
Syntax for isalpha() Function in Python:
str.isalpha()
Returns true if alphabetic character found else returns false.
Example of isalpha() Function in python:
# test the presence of Alphanumeric character str1 = "2018isontheway"; #no space in the string print str1.isalpha() str1 = "Getreadypeople"; print str1.isalpha()
output will be
False
True