title: Using a list of lists as a lookup table and updating a value in new list of lists
body: <p>I have an application that creates a list of lists. The second element in the list needs to be assigned using lookup list which also consists of a list of lists. </p>
  
  <p>I have used the "all" method to match the values in the list. If the list value exists in the lookup list, it should update the second position element in the new list. However this is not the case. The == comparative yields a False match for all elements, even though they all exist in both lists.  </p>
  
  <p>I have also tried various combinations of index finding commands but they are not able to unpack the values of each list. </p>
  
  <p>My code is below. The goal is to replace the "xxx" values in the newData with the numbers in the lookupList. </p>
  
  <pre><code>lookupList= [['Garry','34'],['Simon', '24'] ,['Louise','13'] ]
  
  newData = [['Louise','xxx'],['Garry', 'xxx'] ,['Simon','xxx'] ]  
  
  #Matching values
  for i in newData: 
      if (all(i[0] == elem[0] for elem in lookupList)):
          i[1] = elem[1]
  </code></pre>