結果 : check if all elements are equal python