Re: [Tutor] Finding the Index of a member of a Tuple

2006-01-12 Thread bob
At 10:52 PM 1/11/2006, Brian van den Broek wrote: >[snip] > >I assume Bob meant that tuples have no index or find method. No, Bob is sick and not thinking clearly. At 11:04 PM 1/11/2006, Terry Carroll wrote: >Does it have to be a tuple? If you make it a list, you can use index(): >[snip] At 03

Re: [Tutor] Finding the Index of a member of a Tuple

2006-01-12 Thread Kent Johnson
Steve Haley wrote: > Hello everyone, > > I need to do something very simple but I'm having trouble finding the > way to do it - at least easily. I have created a tuple and now need to > find the position of individual members of that tuple. Specifically, > the tuple is something like: words

Re: [Tutor] Finding the Index of a member of a Tuple

2006-01-11 Thread Terry Carroll
On Wed, 11 Jan 2006, Steve Haley wrote: > I need to do something very simple but I'm having trouble finding the way to > do it - at least easily. I have created a tuple and now need to find the > position of individual members of that tuple. Specifically, the tuple is > something like: words = (

Re: [Tutor] Finding the Index of a member of a Tuple

2006-01-11 Thread Brian van den Broek
bob said unto the world upon 11/01/06 10:47 PM: > At 08:31 PM 1/11/2006, Steve Haley wrote: > >>Hello everyone, >> >>I need to do something very simple but I'm having trouble finding >>the way to do it - at least easily. I have created a tuple and now >>need to find the position of individual m

Re: [Tutor] Finding the Index of a member of a Tuple

2006-01-11 Thread bob
At 08:31 PM 1/11/2006, Steve Haley wrote: >Hello everyone, > >I need to do something very simple but I'm having trouble finding >the way to do it - at least easily. I have created a tuple and now >need to find the position of individual members of that >tuple. Specifically, the tuple is someth

[Tutor] Finding the Index of a member of a Tuple

2006-01-11 Thread Steve Haley
Hello everyone,   I need to do something very simple but I'm having trouble finding the way to do it - at least easily.  I have created a tuple and now need to find the position of individual members of that tuple.  Specifically, the tuple is something like: words = ("you", "me", "us", "we", "and",