Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
itertools groupby solution in Clear category for Group Equal consecutive by rodka81
from itertools import groupby
def group_equal(els):
return [list(g) for k, g in groupby(els)]
March 28, 2019