[Tutor] write list of tuples to file (beginner)
Mayo Adams
mayoadams at gmail.com
Tue Nov 22 19:50:51 CET 2011
I have a list of tuples of the form (string,integer) that I would like to
write to a file with a line break between each. Simply writing to a file
object thus
for item in tuplelist
outputfile.write (item)
doesn't work, and I suppose I scarcely expect it should, but I am at a loss
to find out how to do it.
--
Mayo Adams
mayoadams at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111122/e6f06bbf/attachment.html>
More information about the Tutor
mailing list