Question: Consider the two lists given below. The first list contains the names of customers of a store and second list contains the items they purchased

Consider the two lists given below. The first list contains the names of customers of a store and second list contains the items they purchased from the store: Names=["Mohamed","Rana","Ahmed","Noha","Ahmed"] Items=[["B","A"],["D"],["A","B","C"],["A","C"],["A","D"]] In this example, the purchased items are A to D.
i- Draw the flowchart of a function that should find and print the name of the customer who purchased the least number of items. In the above example, it should be Rana.
ii- Write a Python function to implement the flowchart you obtained in (i) and show its output.
iii- Draw the flowchart of a function that should find and print the name of the customer who visits the store the most. In the above example, it should be Ahmed.
iv- Write a Python function to implement the flowchart you obtained in (iii) and show its output.

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