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
def allTheSame(i): j = itertools.groupby(i) for k in j: break for k in j: return False return True
Works in Python 2.4, which doesn't have "all".