Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
one line solution solution in Clear category for All the Same by Tairraos
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
return len(elements) == 0 or elements.count(elements[0]) == len(elements)
May 20, 2018