Question: 1. Create a dictionary that stores item number, product name, and pricing information for a product of your choosing. Write code that will take

 1. Create a dictionary that stores item number, product name, and pricing   

1. Create a dictionary that stores item number, product name, and pricing information for a product of your choosing. Write code that will take the current price, increase it by 30% and store the updated price back into the dictionary. Then print a message that the price of the item has been increased by 30%. Include the name of the product in your message. 2. Create a list of 3 or more dictionary items. Each dictionary item should contain a word and its definition. Make sure each dictionary item is stored in the format discussed in the lecture. Once you have created your list, loop through each item in it and neatly print out each word/definition pair (do not just print the dictionary item directly).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This little bit of Python code completes both tasks Task 1 Increase price by 30 and update the dictionary productinfo itemnumber 001 productname Coffe... View full answer

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 Programming Questions!