title: python:compare values with other values in dictionary
body: <p>As per <a href="https://openhatch.org/wiki/Flash_card_challenge" rel="nofollow">this link</a></p>
  
  <p>now i have to Randomly choose state as question and compare the answer with capital, if user provides right answer loop must exit.</p>
  
  <p>I have a dictionary with</p>
  
  <pre><code>{'state': ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California'],
   'capital': ['Montgomery', 'Juneau', 'Phoenix', 'Little Rock']}
  </code></pre>