Following code works,
train_text = [] for k, v in data.items(): for i, j in v: print(i) train_text.append(i) train_text.append(j)