Aug 30, 2020 in Python
Q: Can you please help to clarify what does the ord() function do in Python Language?

1 Answer

0 votes
Aug 30, 2020

The ord(char) in Python Language 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")


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

Related questions

0 votes
Aug 29, 2020 in Python