← Back to Dictionaries
Question 281
Look Up A City
Look Up A City
The dict of dicts people holds an inner dict per person. Read a name from the input (one line, no prompt; it is always one of the keys) and print that person's city by chaining the typed name and then the key city. Input: one line. Output: one line, the city.
Expected Output:
Oshawa= 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.