How to use Python Ternary Operator

In this article, we are going to discuss how to use python ternary operator and implementing nested-if-else with ternary operator