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 le
> ==
>
>
> I am having problems as the program will not work if all three DEPART
> values are not present. If I populate all DEPART values for all records
> program functions without issues.
>
> When I run the check module, I get the fol
ent call last):
File "D:\Documents and
Settings\administrator\Desktop\code\test\testcode.py", line 8, in ?
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.
Thanks for your help!
Elezar
--
http://mail.python.org/mailman/listinfo/python-list