i would like to know if there is an adequate python alternative for my beloved C Makro 'Exp1 ? Exp2 : Exp3'.
I already tried to google but can't seem to find anything.
Example:
x = 0.5
(x > 0) ? 1 : 0
if(type == "release"):
release = True
else:
release = False