6
STORING COLLECTIONS IN DICTIONARIES AND ARRAYS
In previous chapters, you learned that you can store a single piece of information in a variable or constant. But what if you want to store a collection of things, like the names of all the places you’ve visited or all the books that you’ve read? In this chapter, we’ll introduce you to arrays and dictionaries. They’re both used to store collections of values. Using arrays and dictionaries, you can work with a lot of data at once and make your programs more powerful!
KEEPING THINGS IN ORDER WITH ARRAYS
An array is a list of items of the same data type stored in order, kind of like a numbered grocery ...
Get Coding iPhone Apps for Kids, 1st Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.