Mudcat <mnations at gmail.com> writes: > However I wondered if there was a way to simply use a range as a key > reference somehow. Dictionaries aren't really the right structure for that. You want a tree or binary search structure of some sort. The bisect module might be helpful, but you will have to write some code by hand if you use it.