Why does one assignment both add an entry and silently overwrite one — and why is 'B' in grades False when B is sitting right there?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
Here is a small price list:
prices = {'apple': 3, 'banana': 2, 'cherry': 7}
Two things have changed at the market: a date is now sold, at a price of 5, and a banana now costs 4 instead of 2. Apply both changes to prices itself — one statement each, using the same square-bracket assignment both times.