Ternary operators
Notation
<actionTrue> if <condition> else <actionFalse>
Exemples
a if a>b else b # donne le maximum
d["value"] if "value" in d else None
<actionTrue> if <condition> else <actionFalse>
a if a>b else b # donne le maximum
d["value"] if "value" in d else None