title: A pythonic way to take a dictionary as input and return a sub-dictionary as output
body: <p>I am looking for the most pythonic way to take a dictionary and a key name as input, and return the dictionary without the key (and the associated value) as output.</p>
  
  <p>This is what I came up with so far:</p>
  
  <pre><code>def SubDict(inputDict,inputkey):
      return dict([(key,val) for key,val in inputDict.iteritems() if key != inputkey])
  </code></pre>
  
  <p>Test case:</p>
  
  <pre><code>print SubDict({'a':1,'b':2,'c':3},'b')
  </code></pre>
  
  <p>Gives:</p>
  
  <pre><code>{'a': 1, 'c': 3}
  </code></pre>
  
  <p>Are there any better suggestions (cleaner and/or simpler code)?</p>
  
  <p>Thank you.</p>