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