Python OOPs


Python SQLite


Examples


Others


isascii() method in Python


The isascii() method returns value is True if all characters in the string are ascii characters (a-z).

Syntax
string.isascii()

No Parameters

Check if all the characters in the text are ascii characters.

Example
a = "RamKumar123"
b = a.isascii()
print(b)

Output

True

Python String Methods