Say I want to assign two values to two variables if a certain condition is true, and two different values if said condition is false. I would assume it would be done like this:
a, b = 4 > 5 and 1, 2 or 3, 4
However this assigns a to be false, and b to be 2. If we have:
a, b = 4 < 5 and 1, 2 or 3, 4
This correctly assigns a to be 1 and b to be 2.
What am I missing here, how can I get the "ternary operator" to work as I expect?