結果 : how to leave a loop in python