Decode School

Free Certification Courses from

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.