Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for All the Same by Wartem
from typing import List, Any
def all_the_same(elem: List[Any]) -> bool:
return all([elem[e] == elem[e-1] for e in range(1, len(elem))])
Aug. 5, 2022