I have a dictionary as follows:
D = { "America": { "Washington": { "Seattle": ('park', 'museum'), "Kent": ("market",) }, 'Colorado': { "Boulder": ("hiking",) } } }
how can I make the following results using that dictionary.
America Wahington Seattle park
America Wahington Seattle museum
America Wahington Kent market
America Colorado Boulder hiking
I tried as follows:
for x in D.iteritems(): print x
Could not figure out how to extract each elements after that. Alos wan to to how is the good way of getting the above result.