Re: to sum a list in a dictonary

2007-11-01 Thread Gabriel Genellina
En Thu, 01 Nov 2007 12:10:55 -0300, Beema shafreen <[EMAIL PROTECTED]> escribió: > dd = {} > dd2 ={} > probes = list(enumerate((i.split('\t')[2],i.split('\t')[3], > i.split('\t')[4])for > i in open('final_lenght_probe_span'))) Ouch... Can you actually understand what goes on the above line? It'

Re: to sum a list in a dictonary

2007-11-01 Thread Beema shafreen
hi everybody ,i have tried with the improving my code like this but i face the problem since i am not able to concatenate the str, lis.. but if i donot use none i wont get the respective list i require... is there any solution to this dd = {} dd2 ={} probes = list(enumerate((i.split('\t')[2]

to sum a list in a dictonary

2007-11-01 Thread Beema shafreen
hi everybody, I need to sum a list in dictionary... my script, d = {} probes = list(enumerate((i.split('\t')[2],i.split('\t')[3], i.split('\t')[4])for i in open('final_lenght_probe_span'))) for idx, (probe_id, span, length) in probes: try : l = [span,l