A Python ternary operation (aka a conditional expression) is a means to evaluate a condition and return a value, based on if the condition is True or False. With this operator, you can write an if-else statement with a single line. By doing this, your Python code is more concise.