[Tutor] Input into lists?

Alan Gauld alan.gauld at btinternet.com
Fri Aug 16 02:27:31 CEST 2013


On 13/08/13 16:46, leam hall wrote:
> I'm trying to take input from a file (CSV spreadsheet) and use the first
> line inputs (header) as the names of lists. So far I'm not successful.   :)

Have you tried the csv module?

Usually you use a dictionary keyed by the first line values though.
But i#'m sure you could tweak it to generate separate lists if thats 
really what you need.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list