I am starting to learn Python with an online guide, and I just did an exercise that required me to write this script:
from sys import argv script, filename = ar
This does it in two lines. It puts the line you want to print in a variable so it's more readable
lb = "\n" allOnOne= line1 + lb + line2 + lb+ line3 + lb target.write(allOnOne)