All problems
EasyDicts
Update a dict
Add a new key and update an existing one; then print the dict.
- #dict
- #update
Sample input
{"apple": 80} + mango=120, apple=90Sample output
{'apple': 90, 'mango': 120}dict-update.py
Output
Press "Run code" to execute.
