Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner itertools groupby solution in Clear category for Group Equal consecutive by swagg010164
from itertools import groupby
def group_equal(a):
return [list(group) for key, group in groupby(a)]
Dec. 8, 2019
Comments: