Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python List. Tuples, and Dictionaries Create two market tuples with name and sales in three products Tomatos, Potatos, and Onion. Eg: market_tuplel =( Othaim, [200,250,320])

Python
image text in transcribed
List. Tuples, and Dictionaries Create two market tuples with name and sales in three products Tomatos, Potatos, and Onion. Eg: market_tuplel =( Othaim, [200,250,320]) market_tuple2 =( Panda, [180,400,300]) Part a): Write a program to find the total sales of each supermarket. Find the best seller. Compare their sales and display the following message: "The best seller is and has sell Kg," The Output: The best seller is Panda and has sell 880kg. Part b) Display the name of the best seller in each product with the quantity separately in the three products Tomatos, Potatos, and Onion. The Output: The best seller of the Tomatos 1 s ochaim and has sell 200Kg. The best seller of the Potatos is Panda and has sell 400kg. The best seller of the Tomatos 15 Panda and has sell 320kg. >1 Please upload your work (code with screen shots of the output) through your blackboard portal before January 11, 2022 (before 8:00 AM)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Intelligent Information And Database Systems Second International Conference Acids Hue City Vietnam March 2010 Proceedings Part 1 Lnai 5990

Authors: Manh Thanh Le ,Jerzy Swiatek ,Ngoc Thanh Nguyen

2010th Edition

3642121446, 978-3642121449

More Books

Students also viewed these Databases questions

Question

Why is the statement of cash flows a useful document?

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

10. Discuss the complexities of language policies.

Answered: 1 week ago