結果 : python loop get previous element