the PHP ternary operator equivalent on Python

Daniel Crespo dcrespo at gmail.com
Fri Nov 18 15:55:37 EST 2005


Hi Peter,

Expand your mind.

a = {'whatever': TernaryOperation(quantity>90,"It is very huge","The
value is correct")}

;-)

thanks for your advice anyway

Daniel




More information about the Python-list mailing list