Dec 14, 2019 in Python
Q: What Does The Ord() Function Do In Python?

1 Answer

0 votes
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

0 votes
Dec 14, 2019 in Python
...