SyntaxFix
Write A Post
Hire A Developer
Questions
Use this to have a csv loaded into a list
import csv csvfile = open(myfile, 'r') reader = csv.reader(csvfile, delimiter='\t') my_list = list(reader) print my_list >>>[['1st_line', '0'], ['2nd_line', '0']]