# Program to find the ASCII value of the given character
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))
Output
The ASCII value of 'p' is 112
# Program to find the ASCII value of the given character
c = 'p'
print("The ASCII value of '" + c + "' is", ord(c))
Output
The ASCII value of 'p' is 112
Using decode() print(b'Easy \xE2\x9C\x85'.decode("utf-8"))
0 Comments