This Python example code demonstrates a simple Python program to find the ASCII value of a character and print the output to the screen.
Program:
ch = 'G'
print("The ASCII value of '" + ch + "' is", ord(ch))
Program Output:
The ASCII value of 'G' is 71