ASCII – American Standard Code for Information Interchange
The ascii() function returns a string containing a printable representation of an object and escapes the non-ASCII characters in the string using \x, \u or \U escapes.
Syntax
ascii(object) object - String , List , tuple etc.
Ex.
list = ['P¥thon' , 'µ', ' CodË it']
print(ascii(list))
Output :
['P\xa5thon', '\xb5', ' Cod\xcb it']