title: Python: Update dictionary with multiple variables?
body: <p>I've got this code:</p>
  <pre class="lang-py prettyprint-override"><code>    def update_amounts(self):
          container = {}
  
          a = {'a': self.a_amount} if self.a_mount or self.a_amount is None else {'': ''}
          container.update(a)
          b = {'b': self.b_amount} if self.b_amount or self.b_amount is None else {'':''}
          container.update(b)
          c = {'c': self.c_amount} if self.c_amount or self.c_amount is None else {'':''}
          container.update(c)
  
          return container
  </code></pre>
  <p>And I wanted to know if its possible to do the dict update more efficient than calling the update function three times?</p>
  <p>Thanks in regard!</p>