Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 30)
30.
How can you check if a string contains only alphabetic characters?
str.isalpha()
is_alphabetic(str)
check_alpha(str)
str.only_alpha()
Answer: Option
Explanation:
The isalpha() method is used to check if a string contains only alphabetic characters in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.