Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
zip solution in Clear category for All the Same by flpo
def all_the_same(elements):
return all(x == y for x, y in zip(elements, elements[1:]))
Jan. 29, 2018