Home >>Python Built-in Functions >Python ord() Function
Python ord() function is used to return the integer representing the unicode code point of any given input character or the value of the byte when the argument is an 8-bit string.
Syntax:ord(character)
Parameter | Description |
---|---|
character | This parameter defines a String or any character. |
x = ord("k")
print(x)
x = ord('😉')
print(x)