Built-in Functions
ord()
Get the Unicode number for one character.
ord(character)
ord() changes a single character into its Unicode code point.
It is the opposite of chr().
Parameters
| Name | Description |
|---|---|
| character | A string containing exactly one character. |
Returns
An integer Unicode code point.
Try it
Run it and change it
letter = "A" print(ord(letter))