title: Connecting keys & values to user input
body: <p>I'm trying to create a random glossary exam in python, where the user can choose how many words they wish to translate. If the users translation is true, python prints "correct", if false "wrong answer, the correct answer is XX". I have a given dictionary d, my question is; How do I connect the keys &amp; values (in d) to the users input?</p>
  
  <pre><code>import random
  
  d = {"one" : "uno", "two" : "dos", "three" : "tres", "four" : "cuatro", "five" : "cinco"}
  
  word = random.choice(list(d.keys()))
  
  print("Translate", word,":")
  answ = input()
  </code></pre>