the_list = ['a', 'b', 'c']
new_list = [(x + str(y)) for x in the_list for y in range(n)]
with open('myFile.txt', 'w') as f:
    f.write('\n'.join(new_list))
Pythonic way to modify all items in a list, and save list to .txt file