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)
The ord() function returns the number representing the unicode code of a specified character.
ord(character)
| Parameter | Description |
|---|---|
| character | String, any character |
x = ord("J")
print(x)