Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi Kent, > > Thanks for you solution, unfortunately, as Luis correctly inferred, I'm > doing computational biology, so my real data is HUGE and I got this error: > > Traceback (most recent call last): > File "stolen.py", line 62, in ? >first, second = zip(nonGenic

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi, > > I have a list of tuples like this: > > [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] > > Each tuple references coordinates of a big long string and they are in the > 'right' order, i.e. earliest coordinate first within each tuple, and > eearliest t

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Luis N
On 21 Jul 2005 20:39:36 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi,I have a list of tuples like this:[(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] Each tuple references coordinates of a big long string and they are in the'right' order, i.e. earliest coordinate first within ea

Re: [Tutor] String slicing from tuple list

2005-07-21 Thread Danny Yoo
On 21 Jul 2005 [EMAIL PROTECTED] wrote: > [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] > > What I want to do is use this list of coordinates to retrieve the parts > of the string *between* each tuple. So in my example I would want the > slices [2367:6457], [8345:9086] and [10100:123

[Tutor] String slicing from tuple list

2005-07-21 Thread cgw501
Hi, I have a list of tuples like this: [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)] Each tuple references coordinates of a big long string and they are in the 'right' order, i.e. earliest coordinate first within each tuple, and eearliest tuple first in the list. What I want to do i