Python Ternary Operator Example