2 ms·
Actually this has zero academic value. The entire point is as a working programmer to compensate for ambiguous pitfalls in a language. You don't need this spec
by mindslight 8y ago
Actually this has zero academic value. The entire point is as a working programmer to compensate for ambiguous pitfalls in a language.
You don't need this specific trick in python (as others have pointed out, `5 < x < 10` works), but in general python holds to a similar philosophy of using standardized idioms to make reading code easier. It's called "being pythonic".