What is Ord in Python
The ord()
function returns the number representing the Unicode code of a specified character.
Syntax: ord(character)
character – string, any character
x = ord("A") y = ord('A') z = ord('z') print(x) print(y) print(z)
Output:
65 65 122
Subscribe
Login
Please login to comment
0 Discussion