Ternary Operator in Python Does not Make Sense
I don't know why python did'nt simply followed the standard way of using a ternary operator. Instead of following the usual format:
(x > 10) ? true_value : false_value
Python uses a different one:
x > 10 and true_value or false_value























Comments (0)