title: Compare 2 lists and output the similar matches
body: <p>I have 2 Python lists :</p>
  <pre><code>prefixList = [&quot;12&quot;,&quot;9&quot;]
  
  files = [&quot;12-a.csv&quot;,&quot;12-b.csv&quot;,&quot;9-t.txt&quot;,&quot;8-a.txt&quot;]
  </code></pre>
  <p>and want to create a new list with a list of files that start with the prefix list, so the output will be:</p>
  <pre><code>fileOutput = [&quot;12-a.csv&quot;,&quot;12-b.csv&quot;,&quot;9-t.txt&quot;]
  </code></pre>