Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
explicit bool values solution in Clear category for All the Same by almeidamarcos.a
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
return True if len(set(elements)) in [0,1] else False
April 23, 2018