Re: [Tutor] Limitation of range() function in Walking problem

2006-09-16 Thread Andrei
Srinivas Iyyer wrote: > Coordinates of a variable G1: > a1 : 3-8 > b2 : 10-25 > c3 : 7-18 > d4 : 10-13 > Now, I have variables G1Gn. Each variable may > have individual pieces a1(n),b2(n),c3(n).z(n). > > my kind of solution, which is very crappy (i assume): > > Sort the list: > [3,8]

Re: [Tutor] Limitation of range() function in Walking problem

2006-09-16 Thread Alan Gauld
> I loop through each list and check if list[0] is in > range of previous list list[1] AND if it is less or > greater than. If less, I retain the greater number and > loop through. ... > example are small, it worked. in the real world > example , it did not work, because computer slowed > down and

Re: [Tutor] Limitation of range() function in Walking problem

2006-09-15 Thread Luke Paireepinart
Srinivas Iyyer wrote: > Dear tutors: > > this question is in continuation of my previous > question about list manipulations where Kent and Bob > helped me. > Thanks to you both. > > My aim was to walk along coordinates of exon of a gene > on a chromosome. In simple terms: > > > Coordinates of a

[Tutor] Limitation of range() function in Walking problem

2006-09-15 Thread Srinivas Iyyer
Dear tutors: this question is in continuation of my previous question about list manipulations where Kent and Bob helped me. Thanks to you both. My aim was to walk along coordinates of exon of a gene on a chromosome. In simple terms: Coordinates of a variable G1: a1 : 3-8 b2 : 10-25 c3 : 7-18