import csv with open('path/to/file.txt') as inf: reader = csv.reader(inf, delimiter=" ") second_col = list(zip(*reader))[1]