My code is as follows:
for row in lineReader:
i=i+1
if i<3:
tweet = row[0]
label = row[1]
train = [tweet, label]
print train
Output: ['tweet0', 'label0'] ['tweet1', 'label1']
Expected Output:
[('tweet0', 'label0'), ('tweet1', 'label1')]
Any suggestions on how to get the expected output?