PyDocs

Nav

Python Runtime Services

ord

builtins

function
  • ord(character, /)
Return the ordinal value of a character.

If the argument is a one-character string, return the Unicode code
point of that character.

If the argument is a bytes or bytearray object of length 1, return its
single byte value.
0 Examples
No examples for builtins/ord.
See Also
No see-alsos for builtins/ord
0 Notes
No notes for ord