title: Split list in and then join elements in sublists
body: <p>Given the following list:</p>
  
  <pre><code>my_list = ['A &gt; 1', 'B &gt; 2', '\n', 'C &gt; 3', 'D &gt; 4', '\n', 'E &gt; 5', 'F &gt; 6', '\n']
  </code></pre>
  
  <p>I would like to split at the "\n" which I intentionally appended for this goal.</p>
  
  <p>So I'm trying to get something similar to:</p>
  
  <pre><code>my_list2 = [['A &gt; 1', 'B &gt; 2'], ['C &gt; 3', 'D &gt; 4'], ['E &gt; 5', 'F &gt; 6']]
  </code></pre>
  
  <p>And then I would like to join each sublist with a white space in between, as in:</p>
  
  <pre><code>my_list3 = [['A &gt; 1 B &gt; 2'], ['C &gt; 3 D &gt; 4'], ['E &gt; 5 F &gt; 6']]
  </code></pre>
  
  <p>It might be something easy to do, but I've been trying already for several hours and I can't figure out how to do it. I've been googling and also saw some questions here in Stackoverflow talking about using <code>intertools.groupby</code>, but I have not been able to replicate the same results.</p>
  
  <p>I would appreciate any help!</p>
  
  <p>Thanks a lot.</p>