Easy
Add a New Entry
Start with
ages = {'Mim': 15}. Read a name and an age (two lines), add them to the dictionary and print it.Input
Two lines.
Output
A dictionary.
Sample 1
Input
Rafi 20
Output
{'Mim': 15, 'Rafi': 20}Sample 2
Input
Sara 9
Output
{'Mim': 15, 'Sara': 9}Output appears here