The ternaery operator

Chris Angelico rosuav at
Thu Mar 16 20:29:29 EDT 2017

On Fri, Mar 17, 2017 at 10:45 AM, Stefan Ram <ram at> wrote:
> Gregory Ewing <greg.ewing at> writes:
>>wear(red_shirt if it_is_tuesday else green_shirt)
>   Operators in Python usually are written with special
>   symbols, not with words, so a word usually indicates,
>   "This is not an operator.".

Non-operators like "is [not]", "[not] in", "and", "or", and so on?


More information about the Python-list mailing list