結果 : compare two consecutive elements in list python