title: Get element from a list relative to another element in python
body: <p>I have a list. I want to get an element by iterating through it. I am getting an element which is 2 indices after the element that I'm looking for. How do I get the element that I want ?</p>
  
  <p>Example code: </p>
  
  <pre><code>for x in list:
      if "y" == x:
          ## get my element based on above condition
  </code></pre>