- Video Tutorial
- Creating Dictionaries
- Adding Items
- Dictionary Data Types
- Updating Items
- Removing Items
What are dictionaries?
Dictionaries are data structures that store key:value pairs.
The key is the thing that you use to find an item in a dictionary.
The value is the item that is stored under that key.
When should I use them?
Dictionaries should be used where you need to store data in a data structure and access it by it’s name.
Dictionaries are un-ordered, so that order that you put an item in a dictionary is not necessarily the order that your item is stored in. Other other words if you need to maintain data order, use a list instead.