結果 : how to update a list in python using for loop