Re: [Tutor] for k,v in d: ValueError: too many values to unpack

2007-05-21 Thread John Fouhy
On 22/05/07, John Washakie <[EMAIL PROTECTED]> wrote: > I have a Dictionary, that is made up of keys which are email > addresses, and values which are a list of firstname, lastnamet, > address, etc... > > If I run the following: > > last = {} [...] > for k,v in last: > print "Email: %s , ha

[Tutor] for k,v in d: ValueError: too many values to unpack

2007-05-21 Thread John Washakie
I have a Dictionary, that is made up of keys which are email addresses, and values which are a list of firstname, lastnamet, address, etc... If I run the following: #! /bin/python import csv last = {} rdr = csv.DictReader(file("reg-data.csv")) for row in rdr: #print row last[row