1. Engineering
  2. Computer Science
  3. you are given a list of fruit list of fruit...

Question: you are given a list of fruit list of fruit...

Question details

You are given a list of fruit list of fruit (apple banana orangetomato Create a Python cell with loop in which the user vill be asked for each fruil type how many fruito there are (aay,for example, in storage), and how much each fruit costs. Save these numbers as tuples in a dictionary called fruit db. Use the input function to limplement this. The fruit names are the dictionary keys Execute that loop cell and provide some reasonable input. Then print the fruit database with columns for fruit name, number and cost in a formatted table.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution