← Back to Dictionaries
Question 288
Empty Dict Grows
Empty Dict Grows
Start from the empty dict ages, add the key maya with the value 20 and then the key omar with the value 23, print how many keys the dict holds using len, and finally print the dict itself. Input: none. Output: two lines, the count then the printed dict.
Expected Output:
2 {'maya': 20, 'omar': 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.