test = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" test.isalpha() # This will return True if all chars in string are from a-z or A-Z and Flase in all other cases