結果 : if statement nested in for loop python