title: How to check if (key belongs to value/value belongs to key)
body: <p>I can't figure out how to check if the answer is right.</p>
  <pre><code>import random
  elements = {&quot;Co&quot;:&quot;cobaltum&quot;,
              &quot;C&quot;:&quot;Carboneum&quot;}
  question = random.choice(list(elements.keys()))
  print(question)
  answer=input(&quot;What is the full name of this element? &quot;)
  </code></pre>