Ternary Operator in Python – People got Clever
The ternary operator can be incredibly useful in numerous situations in Python, which is why I’m surprised that prior to Python 2.5, there was no standard way of using one. In this article, we’ll cover the ternary operator that was added in Python 2.5 along with the numerous ways that people emulated the operator before then.
Continue reading ‘Ternary Operator in Python – People got Clever’ »
