結果 : check if last element of list python