Categories

Dec 14, 2019 in Python

Q: What Does The Ord() Function Do In Python?

1 Answer

Dec 14, 2019
The ord(char) in Python takes a string of size one and returns an integer denoting the Unicode code format of the character in case of a Unicode type object, or the value of the byte if the argument is of 8-bit string type.

>>> ord("z")

122
Click here to read more about Python
Click here to read more about Insurance

Related questions

Madanswer
Dec 14, 2019 in Python
Aug 29 in Python
Dec 14, 2019 in Python
...