title: Create a list only considering the elements of another list
body: <p>I want to make a list from the elements of one list (base) but only considering the elements of another list (other).</p>
  <p>The base list is:</p>
  <pre class="lang-py prettyprint-override"><code>base = [['A', 'B'], ['B'], ['A', 'B', 'C', 'D', 'E'], ['B'], ['A', 'B', 'C'], ['A'], ['B', 'C'], ['A', 'B'], ['C', 'A', 'B'], ['A'], ['B', 'C']]
  </code></pre>
  <p>The other list is:</p>
  <pre class="lang-py prettyprint-override"><code>other = ['A', 'B']
  </code></pre>
  <p>The expected result is:</p>
  <pre class="lang-py prettyprint-override"><code>expected = [['A', 'B'], ['B'], ['A', 'B'], ['B'], ['A', 'B'], ['A'], ['B'], ['A', 'B'], ['A', 'B'], ['A'], ['B']]
  </code></pre>
  <p>Is there a pythonic way of doing this?</p>