title: Python3 Determine if two dictionaries are equal
body: <p>This seems trivial, but I cannot find a built-in or simple way to determine if two dictionaries are equal.</p>
  
  <p>What I want is:</p>
  
  <pre><code>a = {'foo': 1, 'bar': 2}
  b = {'foo': 1, 'bar': 2}
  c = {'bar': 2, 'foo': 1}
  d = {'foo': 2, 'bar': 1}
  e = {'foo': 1, 'bar': 2, 'baz':3}
  f = {'foo': 1}
  
  equal(a, b)   # True 
  equal(a, c)   # True  - order does not matter
  equal(a, d)   # False - values do not match
  equal(a, e)   # False - e has additional elements
  equal(a, f)   # False - a has additional elements
  </code></pre>
  
  <p>I could make a short looping script, but I cannot imagine that mine is such a unique use case.</p>