 <pre><code>any(x in message for x in myArray) </code></pre> <p>Evaluates to <code>True</code> if <strong><em>at least one</em></strong> string in <code>myArray</code> is found in <code>message</code>.</p> <pre><code>sum(x in message for x in myArray) == 1 </code></pre> <p>Evaluates to <code>True</code> if <strong><em>exactly one</em></strong> string in <code>myArray</code> is found in <code>message</code>.</p>