python.ord 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: python
class PrintHello:
def printnow(self, message):
self.message = message
print(message)
printer = PrintHello()
printer.printnow("hey")
#completely useless
Example 3: python
print("Download Right Now or else Guido Gonna one punch you")
Example 4: 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