title: Combining values in 2 rows of a list without duplicating in python
body: <p>Let's say i have 6 rows in a list, all rows have string data. For example :</p>
  
  <pre><code>samplelist=['Hi. This is a sample list.', '', 'just trying',
              'to get my code work', 'Please help', '']
  </code></pre>
  
  <p>As you can see, some rows are followed by empty rows while one has a string following it.</p>
  
  <p>If the row following the string is empty, i need to append that row [non-null] into another list. </p>
  
  <p>If the row following the string is not empty, i need to combine the two rows <code>[string1+string2]</code> and append into a list. </p>
  
  <p>The final list should not have any duplicates. I am trying to get this done but not able to! Do let me know if you are able to solve it! </p>