Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for All the Same by classHello
def all_the_same(elements):
return len(set(elements)) == 1 or len(set(elements))==0
if __name__ == '__main__':
print(all_the_same([1, 1, 1]))
Dec. 20, 2020