Answers for "python ord function"

0

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
Posted by: Guest on April-22-2021
0

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
Posted by: Guest on September-25-2021
0

Python ord()

print(chr(97))
print(ord('a'))
Posted by: Guest on September-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language