I\'ve started to learn Python with LPTHW and I\'ve gotten to exercise 16:
http://learnpythonthehardway.org/book/ex16.html
And feel like an idiot because I ca
This worked for me.
target.write("line1\nline2\nline3\n")
Also, the keyword which made it clicked for me was mentioned by Ewart, "'\n' only make sense inside a string literal."