On Mon, May 30, 2011 at 11:50 PM, vino19 <vinograd19 at gmail.com> wrote: > Thanks. > > It seems that dictionary is a sorted list of tuples, so the procedure of searching an element is quite quick. Not sorted - it's hashed, so it's even faster. Yep, sounds like a dictionary is everything you want! Chris Angelico