Skip to main content

Treasure Hunters

In this section we're going to start by looking at a new collection type called dictionaries. Dictionaries are a lot like lists, but you access a dictionary's values using keys instead of indexes.

We're also going to take a closer look at functions, as well as function arguments and parameters.

At the end of the section we'll also complete our fourth project. This project is going to revolve around a character's inventory in a treasure hunting game. We're going to have to store a list of items a character has, as well as associated quantities; retrieve both single items and a complete invetory list for a character; and update the character's inventory when we find new items.