Does Python have a ternary conditional operator? – Stack Overflow