How is this evaluated

Chris Angelico rosuav at gmail.com
Fri Jul 5 09:05:49 CEST 2013


On Fri, Jul 5, 2013 at 11:41 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> If you know C, that's like:
>
>     ?(condition-being-tested, value-if-true, value-if-false)

Or to be precise:

condition-being-tested ? value-if-true : value-if-false

ChrisA



More information about the Python-list mailing list