← Back to Dictionaries
Question 265
Age From A Dict Of Dicts
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
Sign in to use hintsTopics:
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.