split file extension from an array : <p>I am trying to remove the extension found in every file name in my array.</p>

<p>I have</p>

<pre><code>files = ['file.tsv', 'file2.tsv', 'file3.tsv']
</code></pre>

<p>and want the output to be</p>

<pre><code>files = ['file', 'file2', 'file3']
</code></pre>

<p>How do I perform this function on an array?</p>
