Run
str1 = "HelloWorldPythonExamples" if str1.isalpha(): print('Given string contains only alphabets.') else: print('Given string does not contain only alphabets.')
Output