CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
Dictionaries
📥 Auto-Input:
maya\n
This input is automatically fed to your program's stdin
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.