Generate training data in txt file using Python

Combine the data and corresponding truth values on one line to generate a new txt file. For example, this form.

with open('aug_data.txt', 'r') as f:
list_train = f.readlines()
#it was read in the form of a list. 
with open('aug_gt.txt', 'r') as f:
list_test = f.readlines()
with open('train_all.txt', 'w') as f:
for i, train in enumerate(list_train):
  train = train.strip('n')
  #remove the spaces in each row so that they can be read as a column 
  test = list_test[i].strip('n')
  result = str(train) + "      " + str(test) + 'n' #6 spaces 
  f.write(result)