python opposite ord()
chr()
ord python
# The ord() function returns an integer representing the Unicode character.
res = ord('A')
print(res)
# output 65
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
Python ord()
print('Unicode value of lower case alphabet a is ', ord('a')) # lower case alphabet
print('Unicode value of bumber 5 is ', ord('5')) # Number
print('Unicode value of symobol $ is ', ord('$')) # dollar
print('Unicode value of upper case alphabet A is ', ord('A')) # Upper case alphabet
print('Unicode value of zero is ', ord('0')) # Number Zero
Python ord()
print(chr(97))
print(ord('a'))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us