title: Comparing part of a list to full list in Python
body: <p>I want to compare two lists that had been previously split and matched up again. </p>
  
  <p>I have two lists. the unsplit one and the split one</p>
  
  <pre><code> list1 = ['store1 120', 'store2 140', 'store3 160', 'store4 150']
   list2 = [120, 140, 150, 160]
  </code></pre>
  
  <p>the second list has already been turned into ints and sorted by size. I want to see if i can compare the two lists so since 'store1 120' has the most in common with '120' and will return the whole string so it can be split again and return just the store name. How can I compare these two lists to return the most similar? Most searches just return single integer lists which are not very useful.</p>
  
  <p>Edit:
  to clarify I needed something that could take a number from an already modified list and return an associating location on a similar list. The original list can and will vary so it needed to be dependent on the input rather than predefined definitions.</p>