Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: Used groupby for the second time in a single day solution in Creative category for Group Equal consecutive by Stensen
from itertools import groupby
group_equal = lambda data: [list(occur) for _, occur in groupby(data)]
Oct. 12, 2020