title: Comparing two lists of coordinates in python and using coordinate values to assign values
body: <p>I have two sets of data taken from two separate import files which are both being imported into python and have currently been placed in lists as follows.</p>
  <p>List 1 is in the form:</p>
  <blockquote>
  <p>(reference number, x coordinate, y coordinate)</p>
  <p>Example list 1: [[1, 0, 0], [2, 0, 10], [3, 0, 20], [4, 0, 30], [5, 0, 40]]</p>
  </blockquote>
  <p>List 2 is in the form:</p>
  <blockquote>
  <p>(x coordinate, y coordinate, temperature)</p>
  <p>Example list 2: [[0, 0, 100], [0, 10, 110], [0, 20, 120], [0, 30, 130], [0, 40, 140]]</p>
  </blockquote>
  <p>I need to compare the two lists using the x and y coordinates and if they find a match produce a new list containing the corresponding reference number and temperature.</p>
  <p>for example from the two lists above the output list would follow the form:</p>
  <blockquote>
  <p>(reference number, temperature)</p>
  <p>Example Output list: [[1, 100], [2, 110], [3, 120], [4, 130], [5, 140]]</p>
  </blockquote>
  <p>This is to be done with a large amount of data and I am really struggling to find a solution, any help would be really appreciated. Cheers</p>