Run
str1 = "hello world. welcome to python examples." if str1.isalpha(): print('Given string contains only alphabets.') else: print('Given string does not contain only alphabets.')
Output