This Python example code demonstrates a simple Python program to find the ASCII value of a character and print the output to the screen.
ch = 'G' print("The ASCII value of '" + ch + "' is", ord(ch))
The ASCII value of 'G' is 71
Found This Useful? Share This Page!