the PHP ternary operator equivalent on Python

Grant Edwards grante at visi.com
Fri Nov 18 15:10:37 EST 2005


On 2005-11-18, Daniel Crespo <dcrespo at gmail.com> wrote:

> I would like to know how can I do the PHP ternary operator/statement
> (... ? ... : ...) in Python...

The _PHP_ ternary operator (x?y:z)!  

Kids these days!

-- 
Grant Edwards                   grante             Yow!  It's so OBVIOUS!!
                                  at               
                               visi.com            



More information about the Python-list mailing list