# w: write
# a: append
with open('output.txt', 'a') as f:
    for i in range(10):
        f.write(f'Nunber {i}\n')