# Program to find the ASCII value of the given character c = 'p' print("The ASCII value of '" + c + "' is", ord(c)) # and from ascii to character with the function chr() ascii = ord(c) print(chr(ascii))