Python String isascii() Method
Example
Check if all the characters in the text are ascii characters:
txt = "Company123"
x = txt.isascii()
print(x)
Try it Yourself »
Definition and Usage
The isascii()
method returns True if all the
characters are ascii characters (a-z).
Syntax
string.isascii()
Parameter Values
No parameters.