Help to solve my problems with python LIST?
<pre><code>author_A = [['book_x',1,10],['book_y',2,20],['book_z',3,30]]
author_B = [['book_s',5,10],['book_t',2,20],['book_z',3,30]]

author_A AND author_B = ['book_z',3,30]
             author_A = [['book_x',1,10],['book_y',2,20]]
             author_B = [['book_s',5,10],['book_t',2,20]]
             ---------------------------------------------
</code></pre>

<p>I Want present data like this </p>

<pre><code>     author     quantity   Amount($)
      A&amp;B        3            30
      A          3            30
      B          7            30
      total      13           90
</code></pre>

<p>I DO NOT Want present data like this !!! in this case it's ADDED duplicate ['book_z',3,30]</p>

<pre><code>         author   quantity   Amount($)
          A         6            60
          B         10           60
          total     16           120
</code></pre>

<p>that is my problems ,Anybody Please help me to sove this problems.
 Thanks everybody</p>
