Error message <exceptions.TypeError unpack non-sequence>

Josiah Carlson jcarlson at nospam.uci.edu
Fri Feb 6 21:54:09 EST 2004


> What if there are more than 2 items? How can I do something where
> element 0 and 1 are assigned to (item, agent) and so on? If this is a
> silly question please let me know what I can read.

If there ever was more than two items, that is, if it was a flat 
sequence like this: [1,2,3,4,5,6], then the original for loop couldn't 
have worked.

  - Josiah



More information about the Python-list mailing list