Đề bài
Cho dictionary {'name': 'Alice', 'age': 25}. Nhập vào key và value mới, thêm vào dictionary rồi in ra dictionary sau khi thêm.
Input
Dòng 1: Key mới Dòng 2: Value mới
Output
Dictionary sau khi thêm cặp key-value mới.
Ví dụ
Input:
city
Hanoi
Output:
{'name': 'Alice', 'age': 25, 'city': 'Hanoi'}