Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Compress List by Evgeny_Sergeev
def compress(items):
return [i for n,i in enumerate(items) if n == 0 or i != items[n-1]]
Dec. 1, 2020