title: How to get the key from value in a dictionary in Python?
body: <pre><code>d[key] = value
  </code></pre>
  
  <p>but how to get the keys from value?</p>
  
  <p>For example:</p>
  
  <pre><code>a = {"horse": 4, "hot": 10, "hangover": 1, "hugs": 10}
  b = 10
  
  print(do_something with 10 to get ["hot", "hugs"])
  </code></pre>