Re: Using tuples to eliminate multiple dict values
thanks, I had a feeling that may be the way to go and my data just changed so it will work better that way. Thanks for the quick reply -- http://mail.python.org/mailman/listinfo/python-list
Using tuples to eliminate multiple dict values
I need a dictionary that returns the same value for multiple keys. i.e. (1) >>> dict = { (1,2,3) : 'text' , (5,6,7) : 'other text' } (2) >>>dict[1] (3) 'text' I cant figure out what i need on line 2 to make this scenario work. Is there a simple way to check if the a number is present in th