hi everybody,<br>i have a file:<br><br>A_16_P21360207#304<br>A_14_P136880#783<br>A_16_P21360209#795<br>A_16_P21360210#173<br>A_16_P03641959#1177<br>A_16_P03641960#1944<br>A_16_P03641962#999<br>A_16_P41563648#-31<br>A_16_P03641963#3391
<br>A_16_P41563649#3626<br>A_16_P03641964#180<br>A_16_P41563655#1216<br>A_16_P03641965#1170<br>A_16_P03641966#194<br>A_16_P21360229#290<br>A_16_P03641967#425<br>A_16_P21360231#1091<br>A_16_P03641968#1167<br>A_16_P03641969#421
<br>A_16_P03641970#63<br>A_16_P21360234#290<br>A_16_P21360235#289<br>A_16_P03641971#398<br>A_16_P21360237#418<br>A_16_P03641972#122<br>A_16_P21360239#16<br>A_16_P03641973#2187<br>A_16_P41563669#2881<br>A_16_P03641974#1101fh = open('complete_span','r')
<br>data = fh.readline().split('#')<br>old_probe = data[0].strip()<br>old_value = data[1].strip()<br>#print old_probe, old_value<br>count = 1<br>while fh:<br>        current_probe, current_value = fh.readline().strip().split('#')[0:2]
<br>        probe  =current_probe.strip()<br>        value  = current_value.strip()<br>        if old_value > value:<br>                res_value='%s\t%s'%(old_value, old_probe)<br>                print res_value
<br>        if count == 244000:<br>                break<br>        old_probe,old_value =probe, value<br>fh.close()<br>and i face this error:Traceback (most recent call last):<br>  File "count_values.py", line 8, in <module>
<br>    current_probe, current_value = fh.readline().strip().split('#')[0:2]<br>ValueError: need more than 1 value to unpack<br><br><br>why do i get this what is the solution for this....<br>regards<br>shafreen<br>
       <br>A_16_P03641975#451<br>My script:<br><br><br>