A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_func_ascii.asp below:

Website Navigation


Python ascii() Function

Python ascii() Function

❮ Built-in Functions

Example

Escape non-ascii characters:

x = ascii("My name is Ståle")

Run example » Definition and Usage

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 Parameter Values Parameter Description object An object, like String, List, Tuple, Dictionary etc.

❮ Built-in Functions

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4