Definition
The ord() function returns the number representing the unicode code of a specified character.
Syntax
ord(character)
Parameters
Parameter | Description |
---|---|
character | String, any character |
Examples
x = ord("J")
print(x)