Run
x = "© Hello World" if x.isascii(): print('Given string is ASCII.') else: print('Given string is NOT ASCII.')
Output