C
Chris Smith
Duncan> The syntax is fine, but the semantics might not be what
Duncan> you expected. If I understand it correctly you need:
Duncan> return "the answer is " + ("yes" if X==0 else "no")
Duncan> Guido's pronouncement said:
I say, with the utmost arrogance, that I won't neglect the parens more
than, say, 50 times.
-Chris
Duncan> you expected. If I understand it correctly you need:
Duncan> return "the answer is " + ("yes" if X==0 else "no")
Duncan> Guido's pronouncement said:
I say, with the utmost arrogance, that I won't neglect the parens more
than, say, 50 times.
-Chris