in Python by
What Does The Ord() Function Do In Python?

1 Answer

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


Related questions

0 votes
asked Dec 14, 2019 in Python by sharadyadav1986
0 votes
asked May 16, 2020 in Python by Robindeniel