結果 : check last element in list python