結果 : check adjacent elements in list python