結果 : python nested if statement in for loop