title: In Python how remove extra space elements from two dimensional array?
body: <p>For eg.</p>
  
  <pre><code>list = [['2', '2', '', ''], ['3', '3', '', ''], ['4', '4', '', '']]
  </code></pre>
  
  <p>and i want as</p>
  
  <pre><code>newlist = [['2','2'],['3','3'],['4','4']]
  </code></pre>
  
  <p>is there any list comprehensive compact way to achieve this
  like for 1D array we have <code>[x for x in strings if x]</code> is there any thing similar to this. </p>