>>> a = 10 >>> b = 5 >>> largest = a if a > b else b >>> print(largest)
>>> a = 10 >>> b = 5 >>> largest = (b, a)[a > b] >>> print(largest)
{True: true_value, False: false_value}[conditional_expression]