結果 : how to check last element in list python