type the following code into the window -pressing enter after each linefrom formatteddata import formatdata newdata formatdata readdata("testfile csv"for entry in newdataprint(entrythe readcsv py code begins by importing the formatdata class it then creates newdata objecta listby calling formatdata readdata(notice that the use of class method is the right choice in this case as well because it makes the code shorter and simpler the application then uses for loop to display the newdata content choose runrun module you see the output shown in figure - notice that this output looks similar to the output in figure - even though the data was written to disk and read back in this is how applications that read and write data are supposed to work the data should appear the same after you read it in as it did when you wrote it out to disk otherwisethe application is failure because it has modified the data figure - the applica tion input after it has been processed updating file content some developers treat updating file as something complex it can be complex if you view it as single task howeverupdates actually consist of three activities read the file content into memory modify the in-memory presentation of the data write the resulting content to permanent storage