Python ord() Function

Given a string representing one Unicode character, ord() returns an integer representing the Unicode code point of that character.

Syntax

Python
ord(str)

Parameters

ParameterDescription
str Required. The unicode character, respresented as a string, for which to return the code point

Example

Python
# The Unicode code point of the Euro sign:
print(ord('€'))

Output

8364