title: Python dict.get returns 0 evaluated as false
body: <p>I use <code>dict.get()</code> in conditional statements to check if something exists in user-defined dictionaries (typically coming from yaml or json config files). This has worked pretty well for me, but I have this edge case:</p>
  
  <pre class="lang-py prettyprint-override"><code>my_dict = {
      'my_key': 0.0
  }
  
  if my_dict.get('my_key'):
      # do some stuff
  </code></pre>
  
  <p>Here, <code>'my_key'</code> does exist in the dictionary, so <code>get</code> will not return None. However, because 0.0 is treated as <code>False</code> in conditionals, this does not work the way that it does in most cases. I can fix with this:</p>
  
  <pre class="lang-py prettyprint-override"><code>if my_dict.get('my_key') is not None:
      # do some stuff
  </code></pre>
  
  <p>but this seems a bit verbose to me. For one conditional, it's not a big deal, but stringing together multiple conditionals can quickly become a little annoying.</p>
  
  <p>My question is simply: is there a less verbose way to do this?</p>