ascii

Full name
ascii
Library
Built-in
Syntax

ascii(object)

Description

The ascii function returns a string containing a printable representation of an object.

Parameters
  • object: object to be converted to a printable version.
Examples

If the object is a text string, the function "escapes" the non-ascii characters:

Ascii function. Example of use

 

The object can be an iterable like a list:

print(ascii ([1, 2, "€"]))

Ascoo function. Example of use

 

Submitted by admin on Sun, 01/20/2019 - 00:02