Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Python Integer to Character

Python program to get an integer value and print the corresponding character of the integer.

Sample Input 1:

97

Sample Output 1:

a

Program or Solution

					    
							
num=int(input("Enter a ASCII value"))
print("%c" %num)

					    
					

Program Explanation

"%c" specifies character, here character of corresponding unicode value will be printed.