First, we are going to see how to add items to a hash. To do that, add in the following code:
people[:leann] = 42
Now, if you type people, you can see this new element has been successfully added:
So adding to a hash is similar to adding to arrays. But instead of passing in an index and value, you supply a key and then a value.