November 2016
Intermediate to advanced
480 pages
14h 42m
English
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 the output below. Note that we are formatting the zip codes so that they do not overflow the page. Your zip codes may appear in a single line.
Georgia has the following zip codes: [30306, 30307, 30308, 30309, 30310, 30311, 30312, 30313, 30314, 30315, 30301, 30302, 30303, 30304, 30305] ...
Read now
Unlock full access