Question: how to check if a string contains only alphabets in python?
Answer: To check if a string contains only alphabets, use the function isalpha() on the string. isalpha() returns boolean value. The return value is True if the string contains only alphabets and False if not.