結果 : variable not updating in while loop python