title: can you write a str.replace() using dictionary values in Python?
body: <p>I have to replace the north, south, etc with N S in address fields.</p>
  
  <p>If I have </p>
  
  <pre><code>list = {'NORTH':'N','SOUTH':'S','EAST':'E','WEST':'W'}
  address = "123 north anywhere street"
  </code></pre>
  
  <p>Can I for iterate over my dictionary values to replace my address field?</p>
  
  <pre><code>for dir in list[]:
     address.upper().replace(key,value)
  </code></pre>
  
  <p>I know i'm not even close!! But any input would be appreciated if you can use dictionary values like this.</p>