Outline for April 17, 2009
Reading: §4.4–4.5
- Internal representation of characters as integers
- Each system chooses its own representation
- Now, almost all systems use ASCII or Unicode
- Conversion to and from numeric representation: ord(), chr()
(see ord.py)
- Cæsar cipher
- How it works
- One form: caesar1.py
- Another form: caesar2.py
- 3. String functions and datecvt.py
- Conversion functions int() and eval()
- Date conversion method 1: using ranges
- Date conversion method 2: using split
- Date conversion method 3: indexing into lists
- Date conversion method 4: indexing into string using ranges