[Tutor] Multiple Assignment from list.

Paul Kraus pkraus at pelsupply.com
Wed Dec 28 21:12:42 CET 2005

How do I code this in python. Assuming fields is a list of 3 things.

(myfielda, myfieldb, myfieldc) = fields

When i try that I get 
ValueError: need more than 1 value to unpack.
If i print fields it is in need printed as

Paul Kraus
PEL Supply Company
Network Administrator
216.267.5775 Voice
216.267.6176 Fax

More information about the Tutor mailing list