I was so miffed at not reading the OP&#39;s <br>mail carefully that I wrote a one liner.<br><br>Ok. Here it goes:<br><br>def no_adjacent_dup(lst):<br>       return [ x for x, y in zip(lst, lst[1:]) if x != y] + [lst[-1]]<br>
 <br>:-) Enjoyed working that one out; but whether it is a good solution ....<br><br>Asokan Pichai<br><br>
<br>