python iterating strings
===

I am writing the content of "article" to a text file.

source file

    lol hi
    lol hello
    lol text
    lol test


python

    for line in all_lines:
      if line.startswith('lol '):
        mystring = line.replace('lol ', '').lower().rstrip()

    article = 'this is my saved file\n'+mystring+'\nthe end'

this is what gets saved to the txt file

    this is my saved file
    test
    the end

this is what I want saved to the txt file

    this is the saved file
    hi
    hello
    test
    text
    the end
    