結果 : ternary operator in python for 3 variables