4 ms·
I presume that the alternative to a statement is an expression. For example, the ternary operator x = (a if c else b) is an expression, where the conditio
by klyrs 6y ago
I presume that the alternative to a statement is an expression. For example, the ternary operator
x = (a if c else b)
is an expression, where the conditional equivalent
if c:
x = a
else:
x = b
is a statement.