Python: How to test multiple values inside an if [multiple values] in list:
<p>I've returned a list of href values from a HTML document. I want to go though every link within this list and test to see if they contain any of the values within my <code>IMAGE_FORMAT</code> tuple.</p>

<pre><code>IMAGE_FORMAT = (
    '.png',
    '.jpg',
    '.jpeg',
    '.gif',
)
</code></pre>

<p>At present I am simply testing for <code>'.jpg'</code> e.g  <code>if '.jpg' in link.get('href'):</code> </p>

<p>I'd like to extend this code to something along the lines of <code>if [any value inside IMAGEFORMAT] in link.get('href'):</code> </p>

<p>What would be the most efficient or cleanest way or doing so?</p>
