Accessing tuples in dictionary
<p>I have this dictionary that stores pairs of two quiz scores and participants' ID. The structure is {(quiz1, quiz2): ID}</p>

<pre><code>scoredict = {('83', '93'): '81937', ('88', '86'): '33576', ('96', '97'): '01084', 
('81', '95'): '48534', ('84', '72'): '11235', ('77', '80'): '01835', ('90', '83'): 
'39488', ('75', '74'): '31049', ('80', '62'): '10188', ('85', '86'): '63011', 
('66', '89'): '58272'}
</code></pre>

<p>I want to make this program to look up  for an ID by entering a pair of quiz scores. Like, for example, if the user input 83 and 93 for quiz 1 and quiz 2, it will return 81937. I've been working on this since the last 48 hours, but none of my codes worked...</p>

<p>And is it possible to find the closest available scores for both quizzes and print the ID?</p>
