to read data from csv file with the csv moduleyou need to create reader object reader object lets you iterate over lines in the csv file enter the following into the interactive shellwith example csv in the current working directoryimport csv examplefile open('example csv'examplereader csv reader(examplefileexampledata list(examplereaderexampledata [[ : ''apples'' '][ : ''cherries'' '][ : ''pears'' '][ : ''oranges'' '][ : ''apples'' '][ : ''bananas'' '][ : ''strawberries'' ']the csv module comes with pythonso we can import it without having to install it first to read csv file with the csv modulefirst open it using the open(function just as you would any other text file but instead of calling the read(or readlines(method on the file object that open(returnspass it to the csv reader(function this will return reader object for you to use note that you don' pass filename string directly to the csv reader(function the most direct way to access the values in the reader object is to convert it to plain python list by passing it to list(using list(on this reader object returns list of listswhich you can store in variable like exampledata entering exampledata in the shell displays the list of lists now that you have the csv file as list of listsyou can access the value at particular row and column with the expression exampledata[row][col]where row is the index of one of the lists in exampledataand col is the index of the item you want from that list enter the following into the interactive shellexampledata[ ][ : exampledata[ ][ 'applesexampledata[ ][ ' exampledata[ ][ 'cherriesexampledata[ ][ 'strawberriesas you can see from the outputexampledata[ ][ goes into the first list and gives us the first stringexampledata[ ][ goes into the first list and gives us the third stringand so on working with csv files and json data