How to Use Ternary Operator in Python?