← Back to Dictionaries
Question 300
Find The Oldest
Find The Oldest
The dict of dicts people holds an inner dict with an age for each person. Find the oldest with a loop and no max, remembering the largest age seen and the name it belongs to, and print <name> is the oldest at <age>. Input: none. Output: one line.
Expected Output:
omar is the oldest at 23= newline. The output ends with a newline — print one after the last line.
Hints3 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.