Decode School

Decode School - The School for Problem Solvers
Need Assignment / Project Guidance (or) Training in Python?

Python Integer to Character

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

Sample Input 1:


Sample Output 1:


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.