The method isalpha() checks whether the string consists of alphabetic characters only.
NA
str.isalpha()
#!/usr/bin/python str = "this"; # No space & digit in this string print str.isalpha() str = "this is string example....wow!!!"; print str.isalpha()
When we run above program, it produces following result −
True False