Question: using python spyder 3.3.6 read_file (fp) list of lists: a. This function accepts a file pointer and returns a master list of lists of all

using python spyder 3.3.6

using python spyder 3.3.6 read_file (fp) list of lists: a. This function

read_file (fp) list of lists: a. This function accepts a file pointer and returns a master list of lists of all the data in the file. Each line of the file will be a list in the master list. The master list will be in the same order that the data is in the file. The file is a comma-separated-value file (.csv). However, some data fields have commas so you must use the csv module: import csv # place this line at the top of the program file #place these lines in this function reader = csv.reader (fp) for line list in reader: # note that using csv.reader you get a list! b. Parameters: file pointer c. Returns : master_list (list of lists) d. The function displays nothing

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!