Possible Duplicate:
In what case would I use a tuple as a dictionary key?
One of the advantage of tuples is that they can be used as dictionary keys in opposite to lists, as tuples are immutable and lists are mutable.
I haven't seen a useful and real example where tuples are used as dictionary keys. Could you show one or a few useful examples with smart usage of tuples as dictionary keys?
EDIT: In many cases the resulting data structure can be implemented as a class instead of as dictionary with keys as tuples. Explain why in your example is it better to use dictionary instead of a class.