結果 : how to break a while loop with an if statement python