← Back to Dictionaries
Question 269
Show The Whole Dictionary
Show The Whole Dictionary
Printing a dict shows every key and value in insertion order, with the braces and quotes, for example {'a': 1}. Print the dict letters as it is, then add the key c with the value 3 and print it again. Input: none. Output: two lines, the dict before and after the new key.
Expected Output:
{'a': 1, 'b': 2} {'a': 1, 'b': 2, 'c': 3}
= 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.