ord function in python is used to return an integer representing of Unicode character.
Syntax:-
ord(ch)
Parameters For ord function in python
This function take just only one perameter and that known as ch (a Unicode character)
Return value
The ord() function in python returns an integer representing the Unicode character.
Example for ord()Function in python
print(ord('5')) # 53 print(ord('A')) # 65 print(ord('$')) # 36
OUTPUT
ord()Function in python |