Possible Duplicate:
Python Ternary Operator
Is there a way to write this C/C++ code in Python?
a = (b == true ? "123" : "456" )
Possible Duplicate:
Python Ternary Operator
Is there a way to write this C/C++ code in Python?
a = (b == true ? "123" : "456" )