Python-equivalent of short-form "if" in C++

Viewed 160549

Possible Duplicate:
Python Ternary Operator

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

4 Answers
Related