Understanding dictionary flashcard game errors : <p>I have defined a variable (show_definition) and have a dictionary (glossary).</p>

<p>My end goal is to provide the user with a random definition of an unknown word, the user to answer in their head then provide them with an answer after the input of a button.</p>

<pre><code>def show_definition():
""" Show the user a random defintion and ask them
    to define it. Show the flashcard
    when the user presses return.    
"""

    random_defin = choice(list(glossary.values()))
    print('Define: ', random_defin)
    input('Press return to see the definition')
    print(glossary.values()[random.defin])
</code></pre>

<p>The first part works intially choosing a random value from the dictionary however I am completely misunderstanding how to then find the key which correlates to the value getting this error.</p>

<p>TypeError: 'dict_values' object is not subscriptable. </p>

<p>What am I not understanding here?</p>
