Definition
The ascii() function returns a readable version of any object (Strings, Tuples, Lists, etc).
The ascii() function will replace any non-ascii characters with escape characters:
å
will be replaced with \xe5
.
Syntax
ascii(object)
Parameters
Parameter | Description |
---|---|
object | An object. Could be a String, List, Dictionary etc. |