Question: Python help please. There is no file or list given. It is just coding purpose. Q8. summary (customer_list, filename=): takes as argument the customer_list and

Python help please. There is no file or list given. It is just coding purpose.Python help please. There is no file or list given. It is

Q8. summary (customer_list, filename="): takes as argument the customer_list and the additional argument filename. Similar to save CustomerInfo, if the filename is empty (*), the user wants to see the output on the screen, otherwise save the output into filename (the program must add the .txt" extension). This action shouldn't modify the customer_list in-place. Show the summary in below format: Total number of customers: 9 Total number of clerks: 4 Total time spent: 119 minutes Number of customers served by clerk-A: 3 Total time spent by clerk-A: 40 minutes Number of customers served by clerk->: > Total time spent by clerk->: > minutes Save & Run 2/12/2021, 3:49:15 AM - 2 of 2 st 6 1 2 def summary(customer_list, filename="'): 3 # write code here 4 t_time = 0 5 t_cust = 0 6 if filename == "": 7 for i in range (len (customer_list)): 8 t_time t_time + int(customer_list[i] [2]) 9 t cust + 1 10 11 print('Total number of customers:',t_cust) 12 print('Total time spent', t_time) 00 t cust = 13 Q8. summary (customer_list, filename="): takes as argument the customer_list and the additional argument filename. Similar to save CustomerInfo, if the filename is empty (*), the user wants to see the output on the screen, otherwise save the output into filename (the program must add the .txt" extension). This action shouldn't modify the customer_list in-place. Show the summary in below format: Total number of customers: 9 Total number of clerks: 4 Total time spent: 119 minutes Number of customers served by clerk-A: 3 Total time spent by clerk-A: 40 minutes Number of customers served by clerk->: > Total time spent by clerk->: > minutes Save & Run 2/12/2021, 3:49:15 AM - 2 of 2 st 6 1 2 def summary(customer_list, filename="'): 3 # write code here 4 t_time = 0 5 t_cust = 0 6 if filename == "": 7 for i in range (len (customer_list)): 8 t_time t_time + int(customer_list[i] [2]) 9 t cust + 1 10 11 print('Total number of customers:',t_cust) 12 print('Total time spent', t_time) 00 t cust = 13

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!