Categories

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

1 Answer

Aug 30

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")

122

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

Related questions

Madanswer
Aug 29 in Python
Aug 29 in Python
Aug 30 in Python
...