title: Is there a better way to handle missing keys in Python?
body: <p>I'm working with APIs that split out variable keys. Right now, I deal with this using a "try" but it looks super ugly, takes up four lines and I'm sure there must be a better way. </p>
  
  <pre><code>try:
      address = location['address']
  except:
      address = ''
  </code></pre>