setting a condition for a mixed list
<p>Maybe there was a better way to do this, but I have a list of mixed elements:</p>

<pre><code>outlist = [10, [ETSc, Juniper Hairstreak], [ETSc, Spotted Turtle],
           [ETSc, Blanding's Turtle], IWWH]
</code></pre>

<p>What I would like to do is iterate over this list and if the list element contains <code>ETSc</code>, then I want to convert it to a string like this:</p>

<pre><code>ETSc (Juniper Hairstreak)
</code></pre>

<p>If it doesn't contain <code>ETSc</code> then I just want to convert it to a string:</p>

<pre><code>IWWH
</code></pre>

<p>Ultimately the strings will populate a variable in an access database table.  But I have no idea how to tell Python to find the list elements containing <code>ETSc</code>, since some of the elements are lists within a list and some are just strings.  </p>

<p>Any help is greatly appreciated!!</p>
