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 realbrandonhere
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
for elem in elements[1:]:
if elem != elements[0]:
return False
return True
Jan. 31, 2020