結果 : check if all elements in array are equal to 1 python