CJCoding With Joseph
15free / daySign inCreate account

Age From A Dict Of Dicts

The dict people maps each name to another dict holding that person's details. Print Maya's age, then on the next line Omar's city, by chaining two key lookups each time. Input: none. Output: two lines, a number then a city name.

Expected Output:

20
Toronto

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Dictionaries
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.