Step 1 of 6

Step 1 · Read and run

Letters are numbers

Inside the computer every character is stored as a number, its character code. ord() gives a character's code, and chr() turns a code back into a character.

The capital letters A to Z have the codes 65 to 90, in order. (You may have met these as ASCII codes.)

Run the program to carry on.
codes.py

Output

Press Run to see what your program prints.