Re: [Tutor] append index out of range

2012-01-12 Thread lina
On Thu, Jan 12, 2012 at 10:56 PM, Dave Angel wrote: > On 01/12/2012 09:38 AM, lina wrote: >> >> Hi, >> >> there is a file >> >> $ cat atom-pair_9.out | wc -l >> 75426 >> >> there is 75426 lines there, >> >>     results=[] >>     unique={} >>     for line in open(tobetranslatedfile,"r"): >>        

Re: [Tutor] append index out of range

2012-01-12 Thread Dave Angel
On 01/12/2012 09:38 AM, lina wrote: Hi, there is a file $ cat atom-pair_9.out | wc -l 75426 there is 75426 lines there, results=[] unique={} for line in open(tobetranslatedfile,"r"): tobetranslatedparts=line.strip().split() results.append(dictionary[tobetransl

Re: [Tutor] append index out of range

2012-01-12 Thread bob gailer
On 1/12/2012 9:38 AM, lina wrote: Hi, there is a file $ cat atom-pair_9.out | wc -l 75426 there is 75426 lines there, results=[] unique={} for line in open(tobetranslatedfile,"r"): tobetranslatedparts=line.strip().split() results.append(dictionary[tobetranslat

Re: [Tutor] append index out of range

2012-01-12 Thread Walter Prins
Hi On 12 January 2012 14:38, lina wrote: > Hi, > > there is a file > > $ cat atom-pair_9.out | wc -l > 75426 > > there is 75426 lines there, > >    results=[] >    unique={} >    for line in open(tobetranslatedfile,"r"): >        tobetranslatedparts=line.strip().split() >        results.append(di

[Tutor] append index out of range

2012-01-12 Thread lina
Hi, there is a file $ cat atom-pair_9.out | wc -l 75426 there is 75426 lines there, results=[] unique={} for line in open(tobetranslatedfile,"r"): tobetranslatedparts=line.strip().split() results.append(dictionary[tobetranslatedparts[2]]) it complains results.a