Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One line solution using set() and len() solution in Clear category for All the Same by marcozulian123
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
return len(set(elements)) in [1,0]
Sept. 15, 2018