String Methods
isascii()
Check whether every character is an ASCII character.
str.isascii()Check whether every character is an ASCII character.
Returns
True if every character is ASCII, including the empty string; otherwise False.
Try it
Run it and change it
text = "café" print(text.isascii())