Module 03: Strings and Codes

Overview

The most important concept of this chapter is that of a string as a sequence of characters. If you learn nothing else, be sure to understand that:

Also understand that characters are represented by numeric codes; they can be converted to and from these codes:

ord(c)
chr(i)

Our main objective is to learn about strings—sequences of characters. I'm going to try to de-emphasize codes (as in secret codes, cryptography). Codes are here as an example of an application of string processing. In the past, students have gotten bewildered about codes and failed to grasp strings thoroughly. Still, I hope we do pick up some concepts about codes as well.

Also, I'm introducing here some learning objectives about code style and management of complexity.

Competencies for This Module