What is Ord in Python
![what is ord in python](https://pythonpoint.net/wp-content/uploads/2020/12/what-is-ord-in-python-1024x576.jpg)
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