application_vnd.jupyter.stderr_output_1.png
example2_path = '../data/example2.txt'

with open(example2_path, 'w') as file2:
    file2.write('This is line A')

with open(example2_path, 'w') as file2:
    file2.write('This is line A\n')
    file2.write('This is line B\n')
    file2.write('This is line C\n')

lines = ['This is line D\n', 'This is line E\n', 'This is line F\n']
lines

with open(example2_path, 'a') as file2:
    for line in lines:
        file2.write(line)