LearnPy Hub
← Dictionaries problems
Easy

Add to a Score

Start with scores = {'Mim': 10, 'Rafi': 7}. Read a name (one of these) and points, add the points to that person's score and print the dictionary.

Input

Two lines.

Output

A dictionary.

Sample 1

Input
Mim
5
Output
{'Mim': 15, 'Rafi': 7}

Sample 2

Input
Rafi
3
Output
{'Mim': 10, 'Rafi': 10}
solution.py
Output appears here
Add to a Score · Python practice problem · LearnPy Hub