dig = ["1", "2", "3"] let = ["a", "b", "c"] with open('test.txt', 'w') as f: for d, lt in zip(dig, let): f.write(d + "\t" + lt + '\n')