- [Instructor] In this self check exercise,
we'd like you to simply create a new dictionary named states
and map three state abbreviations
to their corresponding state names.
So we're not giving you specific ones here,
but in my solution,
I'll specifically map the state codes
for Vermont, New Hampshire and Massachusetts
to their corresponding names.
Go ahead and pause the video to give that a shot
and then come back to see the answer.
Okay, let's go ahead and reveal my answer.
As you can see here, we've listed out three key value pairs.
You may be wondering why I bothered
to split this across multiple lines.
Again, when we're doing this for publication in a book,
we have a limited number of characters wide
that we can work with,
so I simply took the version from the book
and pasted it into the cell that you see here.
But in any case, we have three key value pairs,
Vermont, New Hampshire and Massachusetts codes
and their corresponding full string names,
and if I execute that, I can then evaluate states
and see the contents of my dictionary.