(test) ? a:b

Chris Angelico rosuav at gmail.com
Fri Oct 24 13:27:18 EDT 2014


On Sat, Oct 25, 2014 at 4:23 AM, Tobiah <toby at tobiah.org> wrote:
> Out of all of the replies, I don't think anyone
> actually offered the answer:
>
>
>     a if condition else b

Jean-Michel did, the very first response.

ChrisA



More information about the Python-list mailing list