結果 : single line for loop if else python