Python Program to find ASCII value of a character or digit entered by the user

Program

ch = raw_input("Enter a character:\t")
print "The ASCII value of '" + ch + "' is ", ord(ch)

Output

Enter a character:	r
The ASCII value of 'r' is  114