Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Kindly answer this question using the python codes and functions. Thank you Below are the sales reported by 5 salesmen at the end of the

image text in transcribed

Kindly answer this question using the python codes and functions.

Thank you

Below are the sales reported by 5 salesmen at the end of the week. The number of entries given corresponds to the number of days they worked. 1:250$,300$,550$2:150$,200$,250$,175$,210$3:170$,240$,155$,190$,240$,210$4:240$,290$,255$,295$,250$5:450$,380$,500$ i) Define a function that will accept the variable length of arguments and return the number of days the salesman worked and the average sales i.e. sales/day. ii) Save the results of the 5 salesmen in a dictionary. Salesman number 1,2,3,4,5 should be the key and the number of days worked a average sales/day should be stored as a list for the respective salesman

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

More Books

Students also viewed these Databases questions