Code to Character
Python
Easy
2 views
Problem Description
Input has one integer code is provided (0 to 127). Output the character using chr().
Input Format
One integer code.
Output Format
One character.
Official Solution
import sys
s=sys.stdin.read().strip()
if not s: sys.exit(0)
code=int(s)
sys.stdout.write(chr(code))
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!