You are here : python_3Built-in Functionsascii

ascii() - Built-in Functions

As repr(), return a string containing a printable representation of an
object, but escape the non-ASCII characters in the string returned by
repr() using x, u or U escapes.  This generates a string
similar to that returned by repr() in Python 2.


Syntax

ascii(object)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference