0 votes
in Python by
Can you please help to clarify what does the ord() function do in Python Language?

1 Answer

0 votes
by

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

Related questions

0 votes
asked Aug 29, 2020 in Python by Robindeniel
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...