by makecheck · 17y ago · 0 comments
def f(x): return not x or list(x) == [x[0]] * len(x)
I wonder if there is a single "ideal" solution ...
def f(x): 0 == sum([y - x[0] for y in x])