So I\'m learning Python. I am going through the lessons and ran into a problem where I had to condense a great many target.write() into a single write()>
target.write()
write()>
writelines
write
line1 + "\n" + line2 merges those strings together into a single string before passing it to write.
line1 + "\n" + line2
Note that if you have many lines, you may want to use "\n".join(list_of_lines).
"\n".join(list_of_lines)