LearnPy Hub
← Data Types & Casting problems
Medium

Character Codes

Every character has a number code. Read one character and print its code with ord(), then the character with the next code using chr().

Input

One character.

Output

Two lines.

Sample 1

Input
A
Output
65
B

Sample 2

Input
a
Output
97
b
solution.py
Output appears here
Character Codes · Python practice problem · LearnPy Hub