title: How to remove items that are not in all the other lists
body: <p>In python 3:</p>
  
  <p>I have some sets of lists. One set of lists is a time stamp, the other is a measurement that corresponds to that time. I have 5 lots of these. So let's call the lists: Time1, Time2, Time3, Time4, Time5 and M1, M2, M3, M4, M5. This lists should all be the same size, but unfortunately they are not. I want to loop through all the lists making sure that every Time is in each list, and if it isn't, remove that timestamp from the list and also removing the corresponding measurement value. So I end up with all the lists being off equal length and Time1-5 have all the exact same timestamps in. </p>
  
  <p>What is the most pythonic and quickest way to do this? </p>
  
  <p>So for example:</p>
  
  <p>Original timestamps and corresponding measurements:</p>
  
  <p>Time1 = [1, 2, 3, 4, 5, 6] and M1 = [5, 6, 7, 8, 9, 10] </p>
  
  <p>Time2 = [1,  2, 3, 4, 5, 6, 7] and M2 = [6, 11, 8, 9, 10, 4, 7] </p>
  
  <p>Time3 = [1, 2, 4, 5, 6] and M3 = [6, 18, 91, 10, 7] </p>
  
  <p>Time4 = [1, 2, 3, 4, 5, 6] and M4 =[50, 16, 72, 18, 9, 10] </p>
  
  <p>Time5 = [1, 2, 3, 4, 5, 6] and M5 = [24, 32, 11, 2, 9, 1]</p>
  
  <p>After processing:</p>
  
  <p>Time1 = [1, 2, 4, 5, 6] and M1 = [5, 6, 8, 9, 10]</p>
  
  <p>Time2 = [1, 2, 4, 5, 6] and M2 = [6, 11, 9, 10, 4]</p>
  
  <p>Time3 = [1, 2, 4, 5, 6] and M3 = [6, 18, 91, 10, 7]</p>
  
  <p>Time4 = [1, 2, 4, 5, 6] and M4 = [50, 16, 18, 9, 10]</p>
  
  <p>Time5 = [1, 2, 4, 5, 6] and M5 = [24, 32, 2, 9, 1]</p>