CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
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.