Why can ASCII represent the digit 5 on a £5 price tag but not the pound sign?
You see a five-pound price tag on a shop screen. The digit five and the pound sign are both characters, but only one has a code in standard ASCII. What makes the pound sign different?
You've used binary to represent whole numbers. Those numbers can also represent characters. In Python, ord gives you a character's Unicode code point, its assigned number. For capital A, that's sixty-five. On the next line, chr takes sixty-five and gives you capital A back.
Watch capital B become code number sixty-six. Another program can look up that number and show capital B again, as long as both programs use the same mapping. We call a collection of characters with agreed code representations a character set.
Your program receives code number sixty-six. The agreed mapping gives capital B the code sixty-six and capital C the code sixty-seven. Which character should the program display? Pick one answer.
Each bit has two choices, so seven bits give ASCII one hundred and twenty-eight codes, from zero to one hundred and twenty-seven. Unicode keeps those assignments. Capital A and the digit five have the same codes in both. Unicode supports more scripts, such as Arabic, and more symbols, including the pound sign.
Read across each row of this shared code table. Capital H has code seventy-two, I has seventy-three and J has seventy-four. To encode H, start with the letter and read across to seventy-two. To decode seventy-four, find the number and read back across to J.
Suppose you're given only S at eighty-three. Capital letters have consecutive codes, so the next two are T at eighty-four and U at eighty-five. To encode U, add two to eighty-three. To decode eighty-four, move one place forward from S because eighty-four is one higher than eighty-three.
Now try a different part of the same capital letter group. Capital M has code seventy-seven. Use consecutive letters to calculate the code for capital P. Count the gaps between the letters, then pick your answer.
You might expect Unicode to change the code for capital A, but check the numbers. Capital A is sixty-five in both sets. Unicode gives the pound sign code one hundred and sixty-three. That's outside the ASCII range, so there's no need to change the code for A.