Hi everyone,<div><br></div><div>I`m totaly new in python and trying to figure out - how to write a list to a file with a newline at the end of each object.</div><div>I tried alot of combinations :) like:</div><div><div>users = ['toli','didi']</div>
<div>fob=open('c:/Python27/Toli/username','w')</div><div>fob.writelines(users) + '%s\N'</div><div>fob.close()</div></div><div> or fob.writelines('\N' % users) </div><div>or fob.writelines('%s\N' % users)</div>
<div>but nothing of dose works...</div><div><br></div><div>Could you help me find out the right syntaxes?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div>