Is there an equivalent of C's "?:" ternary operator? | Python

No.