ord pyton code example
Example 1: ord python
# The ord() function returns an integer representing the Unicode character.
res = ord('A')
print(res)
# output 65
Example 2: ord() in python
'''note the integer representation of unicode character
of capital letters and small letters are completely different'''
# example
print( ord('A') ) # output 65
print( ord('a') ) # output 97