title: how to retrieve all keys with a given value from dictionary in python
body: <p>I want to get the list of keys of dictionary for a given value. For example  </p>
  
  <pre><code>my_dict = {1: 2, 3: 3, 4: 2}
  value = 2
  </code></pre>
  
  <p>I want to get 1 and 4.  </p>
  
  <p>How to get the list of correspondent keys?</p>