practising csv I wrote this code:
with open('example.csv', 'r') as exampleFile: exampleReader = csv.reader(exampleFile) for line in exampleReader: print('Line #' + str(exampleReader.line_num) + ' ' + str(line))this is what I get:
Output:Line #1 ['4/5/2015 13:34\tApples\t 73']
Line #2 ['4/5/2015 3:41\tCherries 85\t']
Line #3 ['4/6/2015 12:46\tPears\t 14']
Line #4 ['4/8/2015 8:59\tOranges\t 52']
Line #5 ['4/10/2015 2:07\tApples\t 152']
Line #6 ['4/10/2015 18:10\tBananas\t 23']
Line #7 ['4/10/2015 2:40\tStrawberries\t98']
Do you know what to do to eliminate this '\t'? I don't understand why this tab sign appears at all since I didn't add it.