Operador ternario en Python
a, b = 10, 20
# Copy value of a in min if a < b else copy b
min = a if a < b else b
Delightful Dunlin
a, b = 10, 20
# Copy value of a in min if a < b else copy b
min = a if a < b else b
(if_test_is_false, if_test_is_true)[test]
is_nice = True
state = "nice" if is_nice else "not nice"