About Lesson
isalpha():-
The isalpha() method returns True if all the characters are alphabet letters (a-z). Example of characters that are not alphabet letters: (space)!#%&? etc.
Syntax:- string.isalpha()
txt = “CompanyX” x = txt.isalpha() print(x) Output True |
txt = “Company10” x = txt.isalpha() print(x) Output False |