Question: Problem Statement: You are a shopkeeper who keeps a record of the products you sell. Your job is to write a Python script to keep

Problem Statement:
You are a shopkeeper who keeps a record of the products you sell. Your job is to write a Python script to keep track of the products and their prices.
Requirements:
Create a list named "products" to store the names of 5 products.
Hammers
Shovels
Picks
Buckets
Rope
Create another list named "prices" to store the prices of the 5 products in the same order as the products list.
11.50
25.00
13.45
2.95
9.99
Use the zip function to create a dictionary named "product_prices" that maps the product names to their prices.
Use a for loop to print the names and prices of all products.
(ex: Hammers: $11.50)

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