Ternary Operator Python Example