
May 18, 2022
11:53 p.m.
It's Python's conditional expression, `expression_true if condition else expression_false`. It's the same thing as C's ternary: `condition ? expression_true : expression_false` Also yes, you could put any expression in the parentheses. Just that the empty one is actually just an empty tuple.