Is there a python equivalent of the C ternery operator? I.e.: fred = (x == 1) ? 12 : 15 If not, what's the best way to construct the same logic? Regards