結果 : first and last element in list python