Summary
Arrays make it possible to store complicated types of information in a program and manipulate that information. They're ideal for anything that can be arranged in a list and can be accessed easily using the loop statements that you learned about during Hour 8, “Repeating an Action with Loops.”
To be honest, the information processing needs of Santa Claus probably have outgrown arrays. There are more children being manufactured each year, and the gifts they want are increasing in complexity and expense. Pokémon cards alone created a logistical nightmare at the North Pole.
Your programs are likely to use arrays to store information that is unwieldy to work with using variables, even if you're not making any lists or checking them twice. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access