The ternaery operator

Gregory Ewing greg.ewing at
Fri Mar 17 00:21:42 EDT 2017

Stefan Ram wrote:
>   A postponed »if« can be found (x if a, otherwise y), but a
>   preceding »if« (if a, x, otherwise y) also is found often.

Yes, both forms occur in English. The point is that
Guido didn't just make the idea up, it was inspired
by natural language.


More information about the Python-list mailing list