Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
This little bit of Python code completes both tasks Task 1 Increase price by 30 and update the dictionary productinfo itemnumber 001 productname Coffe...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started