14.0 Compound Data Review
Compound data is "data that can be subdivided into smaller pieces of data which are organized in a
particular way. An example of compound data is a list. A list consists of several pieces of data
which have a specific ordering." (Introduction to Creative Computing, Long, p.48)
Types of Compound Data
- String - sequences of characters and are usually used to store text.
- Dictionary - key-value pairs in no particular order
- List - a sequence of data items that can be changed (called arrays in other programming
languages)
- Tuple - a sequence of data items that cannot be changed (covered in CS 30)