title: if value x == any value in list y: python
body: <p>I'm relatively new to python and want to do something like:</p>
  
  <pre><code>if value x == any value in list y:
     write x
  </code></pre>
  
  <p>this would operate wihtin a function, so only solutions which match a certain criteria would write to csv as they are generated</p>