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
I think they want you to use string concatenation:
target.write(line1 + "\n" + line2 + "\n" + line3 + "\n")
Much less readable, but you have only one target.write() command
target.write()