I have a text file looks like:
first line second line third line forth line fifth line sixth line
I want to replace the third and forth lines with three new lines. The above contents would become:
first line second line new line1 new line2 new line3 fifth line sixth line
How can I do this using Python?