type the following code into the window at the end of the existing code -pressing enter after each linedef readdata(filename "")with open(filename" "newline='\ 'as csvfiledatareader csv readercsvfiledelimiter="\ "quotechar="quoting=csv quote_nonnumericoutput [for item in datareaderoutput append(item[ ]csvfile close(print("data read!"return output as previously mentionedmake absolutely certain that readdata(is properly indented if you add readdata(to the file but don' indent it under the formatdata classpython will treat the function as separate function and not as part of formatdata the easiest way to properly indent readdata(is to follow the same indentation used for the __init__(and __str__(functions opening file for reading is much like opening it for writing the big difference is that you need to specify (for readinstead of (for writeas part of the csv reader(constructor otherwisethe arguments are precisely the same and work the same it' important to remember that you're starting with text file when working with csv file yesit has delimitersbut it' still text when reading the text into memoryyou must rebuild the python structure in this caseoutput is an empty list when it starts the file currently contains three records that are separated by the / control character python reads each record in using for loop notice the odd use of item[ when python reads the recordit sees the nonterminating entries (those that aren' last in the fileas actually being two list entries the first entry contains datathe second is blank you want only the first entry these entries are appended to output so that you end up with complete list of the records that appear in the file as beforemake sure that you close the file when you get done with it the method prints data read message when it finishes it then returns output ( list of recordsto the caller save the code as formatteddata py open python file window you see an editor in which you can type the example code