Question: I've provided you with a start dictionary called inventory. inventory = { ' croissant ' : 1 9 , 'bagel': 4 , 'muffin': 8 ,

I've provided you with a start dictionary called inventory.
inventory ={'croissant': 19, 'bagel': 4, 'muffin': 8, 'cake': 1} #DON'T CHANGE THIS LINE!
Follow these instructions:
1. Make a copy of inventory and save it to a variable called stock_list using a dictionary method we've covered
2. Add the value 18 to stock_list under the key "cookie" using dictionary methods
3. Remove 'cake' from stock_list using a dictionary method we've learned

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!