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:13 AM 1/12/2006, Kent Johnson wrote: >[snip] >If you can use a list instead of a tuple you can use the index() method. I'm glad there are several of us contributing to this list. I hope to think things thru better before responding, but it is also nice to see that the dictionary approach stimulated things! _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor