title: Create a list of tuples with adjacent list elements if a condition is true
body: <p>I am trying to create a list of tuples where the tuple contents are the number <code>9</code> and the number before it in the list.  </p>
  
  <p><strong>Input List:</strong></p>
  
  <pre><code>myList = [1, 8, 9, 2, 4, 9, 6, 7, 9, 8]
  </code></pre>
  
  <p><strong>Desired Output:</strong></p>
  
  <pre><code>sets = [(8, 9), (4, 9), (7, 9)]
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>sets = [list(zip(myList[i:i], myList[-1:])) for i in myList if i==9]
  </code></pre>
  
  <p><strong>Current Result:</strong></p>
  
  <pre><code>[[], [], []]
  </code></pre>