c/js ?: in Python
a if condition else b
https://docs.python.org/3.3/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
[on_true] if [expression] else [on_false]
x, y = 50, 25
small = x if x < y else y
a if condition else b
https://docs.python.org/3.3/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
[on_true] if [expression] else [on_false]
x, y = 50, 25
small = x if x < y else y