what is isalpha?
what is the use of it?


Certainly this question does not warrant an instant vote. Please do not abuse the system.

There is a fixed string recognized as alpha, namely,


Any character in the test string that is not in the above will return a fail from the str.isalpha() method.

It is useful for the reason that we may only want to accept inputs that are members of that string. There are countless ways this constraint could be applied to a programming objective.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.