Return True if all characters in the string are ASCII, False otherwise. ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.
>>> 'ASCII characters'.isascii() True >>> 'µ'.isascii() False
builtins/str.isascii
str.isascii