You are here : python_3Built-in Functionsord

ord() - Built-in Functions

Given a string representing one Unicode character, return an integer
representing the Unicode code point of that character.  For example,
ord('a') returns the integer 97 and ord('€') (Euro sign)
returns 8364.  This is the inverse of chr().


Syntax

ord(c)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference