[Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

xiufeng liu toxiufeng at gmail.com
Fri Feb 16 08:01:43 CET 2007


Hi, all,

In python if there is any similar way like in Java, or C++ to express
the following:
str = (a>b?"Yes":"NO")


thanks!


More information about the Tutor mailing list