Unit 8 · Lesson 3
Build the idea
Start with the concept and its key vocabulary.
ASC() converts one character into its numeric code, while CHR() performs the reverse conversion. Python calls these functions ord() and chr(). For the standard examples, A has code 65 and code 97 represents lowercase a.
A number used by a computer to represent a character.
The OCR ERL operation that returns the numeric code of a character.
The OCR ERL operation that returns the character represented by a numeric code.
The Python functions corresponding to OCR ASC() and CHR().