Question: CHALLENGE 3 . 5 . 1 : Dictionary basics ACTIVITY 3 . 5 . 1 : Dictionary basics Jump to level 1 Dictionary food _

CHALLENGE
3.5.1: Dictionary basics
ACTIVITY
3.5.1: Dictionary basics
Jump to level 1
Dictionary food_quantities contains two key-value pairs. Read a string from input, representing a key found in food_quantities Then, assign the value associated with the key read with the current value plus 2.
grad Click here for example
Ex: If the input is muffins, then the output is:
Original
{'muffins': 43, 'cucumbers': 42}
Updated:
{'muffins': 45, 'cucumbers': 42
 CHALLENGE 3.5.1: Dictionary basics ACTIVITY 3.5.1: Dictionary basics Jump to level

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!