結果 : first and last element of list python