Python ord() is an inbuilt function that returns the number representing the Unicode code of a specified character. The ord() method returns the integer representing the Unicode code point for the given Unicode character.

Python ord Function

The ord() function in Python accepts a string of length one as an argument and returns the Unicode code point representation of the passed argument. For example, ord(‘B’) returns 66, which is a Unicode code point value of character ‘B.’ The ord() method is the inverse of the  chr() function.

#python #python ord

Python ord: How to Convert Character to Unicode Number
3.00 GEEK