Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Group Equal consecutive by kmn.fish
from itertools import groupby
def group_equal(els):
return [list(i) for _, i in groupby(els)]
April 2, 2019