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 products.
Hammers
Shovels
Picks
Buckets
Rope
Create another list named "prices" to store the prices of the products in the same order as the products list.
Use the zip function to create a dictionary named "productprices" that maps the product names to their prices.
Use a for loop to print the names and prices of all products.
ex: Hammers: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
