The ternary operator is used for inline conditional expressions. It is best used in simple, concise operations that are easily read.
The order of the arguments is different from many other languages (such as C, Ruby, Java, etc.), which may lead to bugs when people unfamiliar with Python's "s...