結果 : nested if loop in python