Python ascii() Function

The ascii() function returns a readable version of any object (Strings, Tuples, Lists, etc). This function will replace any non-ascii characters with escape characters.

Syntax

Parameter

object:  An object, like String, List, Tuple, Dictionary, etc.

Return

This function returns a readable version of any object unlike Strings, Tuples, Lists, etc.

Example 1

Output

Pin It on Pinterest

Share This