結果 : how to implement ternary operator in python