Fwd: Sorting Countries by Region

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Nov 17 06:47:51 EST 2007


En Sat, 17 Nov 2007 08:34:43 -0300, <patrick.waldo at gmail.com> escribió:

> for i, country in countries_list:
>     if country in REGIONS_COUNTRIES['European Union']:
>         matrix.write(i+2, 1, country)
> but I got "ValueError: too many values to unpack"

Remove the i, and try again...



-- 
Gabriel Genellina




More information about the Python-list mailing list