[Tutor] How to output dictionary data to CSV file

Alan Gauld alan.gauld at btinternet.com
Tue Apr 28 15:43:09 CEST 2015


On 28/04/15 09:51, Paradox wrote:

> to save that information to a file, CSV seemed the easiest format

You could consider JSON too.
JSON looks a lot like a Python dictionary of strings so is
almost a perfect match to your data. The json module is in
the standard library.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list