title: Sum list of dictionary ticked box
body: <p>I have a list of 30 menus: </p>
  
  <pre><code>MENUS = [
    {
      "name": "Pates carbonara",
      "pasta (g)": 100, 
      "egg": 2, 
      "cheese (g)": 50, 
      "pork (g)": 50,
    },
    {
      "name": "Pates cacio e pepe", 
      "pasta (g)": 100, 
      "cheese (g)": 40,
      "pepper": 1,
  },
  
  
  "name": "Salmon teriyaki", 
      "salmon (g)": 125,
      "soya": 1,
      "ginger (g)": 10,
      "sesame (g)": 5,
      "pepper": 1,
      "sugar": 1,
  
  etc...
  </code></pre>
  
  <p>and I would like to have as a result --> the sum of the ingredients:</p>
  
  <pre><code>pasta = 200
  cheese= 40
  etc...
  </code></pre>
  
  <p>My goal is for the user to have a list of the different menus and when they select the menus they have the sum of the ingredients. 
  How can I do that? 
  I successfully did it but my algorithm doesn't sum the values which are selected but only take the value of the first menu selected.</p>
  
  <p>Thanks in advance for your answers.  </p>