結果 : python check for last element in list