結果 : how to stop a while loop from repeating python