Question: how to check if a string contains only letters python?
Answer: Use str. isalpha() to check if a string contains only letters Call str. isalpha() with str as the string to be checked to return True if all characters in str are alphabetic and False otherwise.