title: Add items from a list based on a second list in python
body: <p>I  have two list. I want add values in vp based on the list color.
  So I want this output: </p>
  
  <pre><code>total = [60,90,60]
  </code></pre>
  
  <p>Because I want that the code runs what follows: <code>total = [10+20+30, 40+50,60]</code></p>
  
  <pre><code>total = []
  vp = [10,20,30,40,50,60]
  color = [3,2,1]
  </code></pre>
  
  <p>I don't know how to do. I began something like this in python3:</p>
  
  <pre><code>for c, v in zip(color, Vp):
      total.append ....
  </code></pre>
  
  <p>thank you </p>