Python ord() Function
Given a string representing one Unicode character, ord() returns an integer representing the Unicode code point of that character.
Syntax
Python
Copy Code
ord(str)
Parameters
Parameter | Description |
---|---|
str |
Required. The unicode character, respresented as a string, for which to return the code point |
Example
Python
Copy Code
# The Unicode code point of the Euro sign: print(ord('€'))
Output
8364