Question: please use python to solve the question. here are the material you may need 3. Write a function, sortByRep(ifile) which uses readCSV (ifile) from Lab

please use python to solve the question. here are the material you may needplease use python to solve the question. here are the material youmay need 3. Write a function, sortByRep(ifile) which uses readCSV (ifile) fromLab 7 to prepare the input file of Supplies.csv for this problem.

3. Write a function, sortByRep(ifile) which uses readCSV (ifile) from Lab 7 to prepare the input file of Supplies.csv for this problem. Using the list returned by readCSVifile) and Using either break' or while', return the list sorted in order of Rep name.. >sortByRep' Supplies.csv) CC'17-Nov-14', 'Central, 'Alex', 'Binder E', '60', 4.99'], C'4-Dec-14', 'Centr al', 'Alex', 'Pen Set A, '62, '4.99'], ['9-Feb-15', 'Central', 'Alex, 'Binder G, '46', '8.99'], C'24-Mar-15, 'Central', 'Alex', 'Binder J', '87, '15'], r 5-May-15' 'Central 'Alex', 'Binder M, 94 '19.99'1, '10- Sep-14, "Central 'Bill, 'Pencil 5', '95', '1.99'1, C'15-Jan-15', 'Central', Bill', 'Pencil 1 2, 90, 4.99'], C'26-Feb-15', 'Central, 'Bill', 'Binder I, 60, '8.99'], D 14-May-15', 'Central, Bill', 'Binder N', , '19.99'1, C'31-May-15, 'Centr al Bill, 'Pen 4, '15', 19.99'1, C'27-Sep-14', 'West, 'James', Pencil 7 75' 1.99'1, C'7-Mar-1 5, 'West James' Pen 3' '64', 8.99'], C'15-Mar-1 'West', 'James', 'Pen Set D, 55 12.49'], ['25-Nov-14', North', 'Matt', 1-Apr-15, 'East', 'Matt', 'Pen Set E', 6 15.99 C'7-Aug-14', 'C Pen 2 96 Eost 1, C'25-Jun-15, "Central', Matt, 'Pen Set G, '42, '23.95'], entral, 'Matthew 'Binder A', 9 1.99], t'23-Jan-15', 'Central', "Matthew 'Pencil 13, 9 4.99'], '21-Jul-14, 'Central, Morgan', 'Pencil 3', '6 7, 1.29'], C'5-0ct-14', 'North', 'Morgan', 'Pencil 8, 32, '1.99'], C'12-Jul -14', 'East, 'Nick', 'Pencil 2, '14' 1.29'1, C'27-Apr-15', 'East', 'Nick', ' Binder L',57, '19.99'], C'31-0ct-14', 'Central', 'Rachel', 'Binder C', '28 4.99'1, C'21-Dec-14 'South', 'Rachel, 'Pen Set C', '0, 4.99'], C'10-Apr-1 5, 'Central', 'Rachel', Pen Set F, '74', '15.99', C'18-Apr-15, 'South', 'Ra chel', 'Binder K', '81, '19.99'], C'OrderDate', 'Region, 'Rep 'Item 'Units , 'Unit Price'], C'4-Jul-14, 'East, 'Richard', 'Pencil 1', , 1.29'], C'15 -Aug-14', 'East', Richard, 'Pen 1', '76, '1.99', C'18-Sep-14', 'East 'Rich ard', 'Pencil 6', '66', '1.99'], C'22-0ct-14', 'East', 'Richard, 'Binder B', '1 1', '4.99'], C'6-Jan-15, 'East', Richard, 'Pencil 11, '36, 4.99'], C18-Fe b-15' 'East', 'Richard', 'Binder H', '80, '8.99'], C'8-Jun-15', 'East', 'Richa rd', 'Pen 5', '27, '19.99'], C'12-Dec-14', 'Central', Smith', 'Pen Set 8, '96 4.99'], C'1-Feb-15', 'Central', 'Smith', 'Binder F' '28, '8.99'], C'29-Jul 14', East', 'Susan', 'Pencil 4', '53, '1.29'], '8-Nov-14', 'East, Susan', inder D', '4', '4.99'], C'29-Dec-14, 'East', 'Susan', 'Pencil 10', 35, 4.9 9'1, C'14-0ct-14', 'West', 'Thomas', 'Pencil 9', '56', '2.99'], C'22-May-15, 'W est', 'Thomas', 'Binder 0', '7, '19.99'1]

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!