Thanks a lot guys. this solved the problem.
Best
Elezar
--
Izraz.com - an open bosnian-croatian-serbian dictionary
http://izraz.com/Category:Medicinska_stanja
--
http://mail.python.org/mailman/listinfo/python-list
"Elezar Simeon Papo" <[EMAIL PROTECTED]> wrote:
> SCHOOL, DEPART1, DEPART2, DEPART3 = line.split('\t')
> ValueError: need more than 3 values to unpack
>
> How do I solve this problem and change the program so it does not stop
> if a data record has less than three DEPART values.
The problem i
Elezar Simeon Papo wrote:
> Hello All,
>
> I have a tab separated input file (data.txt) in text format - the file
> looks like this
>
> SCHOOLDEPART1 DEPART2 DEPART3
> Harvard Economics Mathematics Physics
> Stanford Mathematics Physics
> Berkeley Physics
> U.