I need a function which takes in a list and outputs True if all elements in the input list evaluate as equal to each other using the standard equal
list
True
I'd do:
not any((x[i] != x[i+1] for i in range(0, len(x)-1)))
as any stops searching the iterable as soon as it finds a True condition.
any