title: Get a list element with condition
body: <p>suppose we have two  lists of list shown below:</p>
  
  <pre><code>A = [['Jake', 'Tall', 90], 
       ['Dunne', 'Tall', 80], 
       ['Steve', 'Not Tall', 70], 
       ['Robert', 'Tall', 70], 
       ['Emily', 'Not Tall', 85]]
  
  B = [['Tall', 10], ['Not Tall', 20], ['Almost Tall', 30], ['Very Short', 40]]
  </code></pre>
  
  <p>So the list <code>A</code> will append a new element on its list that from additional of its third element and the second element  of <code>B</code> based on what is the second element of <code>A</code>, if its <code>'Tall'</code> it will be added with <code>10</code> and otherwise <code>20</code> if <code>'Not Tall'</code>.</p>
  
  <p>For ease of understanding, lets take an example for <code>A[0]</code>, we see that <code>A[0][1] = 'Tall'</code> so the element that we will append to <code>Jake</code> is <code>90 + 10</code> and so on for other <code>A</code> elements.</p>
  
  <p>In the end, what I expected for <code>A</code> list is:</p>
  
  <pre><code>A = [['Jake', 'Tall', 90, 100], 
       ['Dunne', 'Tall', 80, 90], 
       ['Steve', 'Not Tall', 70, 90], 
       ['Robert', 'Tall', 70, 80], 
       ['Emily', 'Not Tall', 85, 105]]
  </code></pre>
  
  <p>What I've tried:</p>
  
  <pre><code>for row in A:
      if row[1] == 'Tall':
          row = row.append(row[2] + B[0][1])
      elif row[1] == 'Not Tall':
          row = row.append(row[2] + B[1][1])
  </code></pre>
  
  <p>But you know, its not an efficient way since if we add more list in <code>B</code>
  Need helps for an efficient way for this problem.</p>