Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions