結果 : inline for loop python with if else