file3.py 173 B

12345678
  1. f = open('test/out/file3.txt', 'w')
  2. seq = [
  3. 'This is the first line.\n',
  4. 'This is the second line.\n',
  5. 'This is the third line.\n'
  6. ]
  7. f.writelines(seq)
  8. f.close()