The ternaery operator

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


On Fri, Mar 17, 2017 at 10:45 AM, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Gregory Ewing <greg.ewing at canterbury.ac.nz> 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?

ChrisA


More information about the Python-list mailing list