title: How to get a random key-value pair from dictionary where there are many values to one key?
body: <p>I'm trying to use random.sample() to return a random key-value pair, and print just the key, i.e fruits: papaya, but my code return a TypeError. How to fix it? Thanks!</p>
  <pre><code>import random
  
  Dictionary = {&quot;fruits&quot;: [&quot;watermelon&quot;,&quot;papaya&quot;, &quot;apple&quot;], &quot;buildings&quot;: [&quot;apartment&quot;, &quot;museum&quot;], &quot;mammal&quot;: [&quot;horse&quot;, &quot;giraffe&quot;], &quot;occupation&quot;: [&quot;fireman&quot;, &quot;doctor&quot;]}
  
  
  def choose_word():
      hint, chosen_word = random.sample(Dictionary.items(), 2)
      print(&quot;Hint: &quot; + hint)
      blank = []
      for letter in chosen_word:
          blank.append(&quot;_&quot;)
      print(&quot;&quot;.join(blank))
      return chosen_word
  
  </code></pre>
  <p>Error message</p>
  <pre><code>TypeError: can only concatenate str (not &quot;tuple&quot;) to str
  </code></pre>