Run
x = "Hello@World" if x.isalnum(): print('Given string is ALPHABETIC.') else: print('Given string is NOT ALPHABETIC.')
Output