searching in list

Chris Angelico rosuav at gmail.com
Mon May 30 10:48:49 EDT 2011


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



More information about the Python-list mailing list