title: Python: Difference between kwargs.pop() and kwargs.get()
body: <p>I have seen both ways but I do not understand what the difference is and what I should use as "best practice":</p>
  
  <pre><code>def custom_function(**kwargs):
      foo = kwargs.pop('foo')
      bar = kwargs.pop('bar')
      ...
  
  def custom_function2(**kwargs):
      foo = kwargs.get('foo')
      bar = kwargs.get('bar')
      ...
  </code></pre>