Silver Challenge

It is not uncommon to place instances of the Array type inside of a dictionary. Create a dictionary that represents a state. Your dictionary’s keys will refer to counties (to keep it short, only include three counties). Each key should map onto an array that holds five of the zip codes within that county. (You can make up the county names and zip codes.)

Finally, log only the dictionary’s zip codes. Your result should look something like this:

Georgia has the following zip codes: [30306, 30307, 30308, 30309, 30310,
                                      30311, 30312, 30313, 30314, 30315,
                                      30301, 30302, 30303, 30304, 30305]

Get Swift Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.