I used Learnpythonthehardway.org, and in exercise 16 the study drills say the following: "Use strings, formats, and escapes o print out line 1, line2, and line3 with just one target.write() command instead of six."
And so, I changed:
target.write(line1, "\n", line2, "\n" line3, "\n")
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")
Into:
target.write("%s \n %s \n %s \n") %(line1, line2, line3)
Can anyone explain what I did wrong?