Lists and Arrays

In Chapter 2 we introduced the idea of a scalar that is a single value—number or string. Having the ability to work with numbers and strings and having scalar variables into which we can store numbers and strings is nice—this allows us to write programs to manipulate data. However, scalars are somewhat limited since they can only contain a single value.