title: Foreach loop where clause in Python similar to c# LINQ
body: <p>I'm attempting to replicate a c# LINQ foreach statement in python. I'm sure there is a better way.</p>
  
  <p>Let's say I have (in c#):</p>
  
  <pre><code>    public class TestData
      {
          public int Id { get; set; }
          public string Something { get; set; }
      }
  
      void MyMethod()
      {
          List&lt;TestData&gt; myList = new List&lt;TestData&gt;();
          foreach (var i in myList.Where(x =&gt; x.Id &gt; 5))
          {
              //do something
          }
      }
  </code></pre>
  
  <p>I'd like to do something exactly like this in python (2.7). All I need is the foreach loop. Everything else I've got down. </p>
  
  <p>Can anyone point me in the right direction?</p>