title: Safe method to get value of nested dictionary
body: <p>I have a nested dictionary. Is there only one way to get values out safely?</p>
  
  <pre><code>try:
      example_dict['key1']['key2']
  except KeyError:
      pass
  </code></pre>
  
  <p>Or maybe python has a method like <code>get()</code> for nested dictionary ?</p>