結果 : how to write two conditions in while loop python