How to use ternary operator in python?

arrow