Help writelines

Anatoli Hristov tolidtm at
Fri Feb 3 21:27:48 CET 2012

Hi everyone,

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.
I tried alot of combinations :) like:
users = ['toli','didi']
fob.writelines(users) + '%s\N'
 or fob.writelines('\N' % users)
or fob.writelines('%s\N' % users)
but nothing of dose works...

Could you help me find out the right syntaxes?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list