結果 : if else nested loop python