title: splitting a list based on the values of a second list
body: <p>I am trying to set up a loop that will run through a list of power readings and sort it into two seperate lists based on the minimum temperature recorded that night (checking for aircon use). But i can't seem to get the list to sort.</p>
  
  <pre><code>
  Pwr_Usd = [0, 9, 13, 11, 13, 8.5, 12.5, 14, 10, 8.5, 7.5, 21, 7, 8, 12, 17, 6, 12, 11.25, 12.75, 8]
  Temp_Min = [13.8, 14.1, 13.7, 16.9]
  Ovr_Usd = PwrUsd[1::4]  # Overnight Usage netween 12am and 6am
  
  ## Air Conditioning
  AirCon = []
  
  ## Standby Power
  StbyPwr = []
  
  
  for i in Ovr_Usd:
      if i &gt; 16 in Temp_Min:
          AirCon.append(i)
  
  else:
      StbyPwr.append(i)
  
  print(AirCon)
  print(StbyPwr)
  </code></pre>
  
  <p>In a perfect world I would end up with two lists</p>
  
  <pre><code>Aircon = [12]
  stbyPwr = [9, 8.5, 8.5, 8]
  </code></pre>
  
  <p>but i am open to any suggestion that would let me run a temperature list against a powerlist and get sort the nights where its too cold for aircon power usage to be a factor. its worth noting that all the lists are organised sequentially over time. with Temp_min being over a week, and every Pwr_Usd reading being 6 hours apart, hence why Ovr_Usd only selects every 4th value for comparison.</p>