Mar-22-2018, 07:19 PM
(Feb-20-2018, 11:48 PM)Dixon Wrote: What is the purpose of the ("\\n") in the following line?
exec("""\ntarget.write(line1)\ntarget.write("\\n")\ntarget.write(line2)\ntarget.write("\\n")\ntarget.write(line3)\ntarget.write("\\n..")\n""")
target
isn't defined, so it doesn't matter as you'll get an error anyway. Yet another reason you should never use eval
or exec
.