Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Third solution in Clear category for All the Same by melitaele
from typing import List, Any
def all_the_same(elements: List[Any]) -> bool:
return all([i == elements[0] for i in elements])
April 23, 2021