Or condition Python
<p>Is there a way to so some type of set of file extension types instead of all of the redundant OR conditions?</p>

<pre><code>for file in os.listdir(source_directory):
    if file.endswith(".xlsx") or file.endswith(".xls") or file.endswith(".xlsm") or file.endswith(".xlsb"):
</code></pre>

<p>So something like </p>

<pre><code>if file.endswith(".xlsx","xls","xlsm","xlsb"):
</code></pre>