Compare string with all values in array
<p>I am trying to fumble through python, and learn the best way to do things. I have a string where I am doing a compare with another string to see if there is a match:</p>

<pre><code>if paid[j].find(d)&gt;=0:
    #BLAH BLAH
</code></pre>

<p>If 'd' were an array, what is the most efficient way to see if the string contained in paid[j] has a match to any value in 'd'?</p>
