← Back to Dictionaries
Question 277
Two Students One Line Each
Two Students One Line Each
Loop over the dict of dicts people and print one line per person in the form <name>: <age>, where the age is reached with two lookups, the loop key then age. Input: none. Output: two lines in insertion order.
Expected Output:
maya: 20 omar: 23
= 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.