(a==b) ? 'Yes' : 'No'
ldo at geek-central.gen.new_zealand
Sat Apr 3 20:26:05 EDT 2010
In message <mailman.1345.1269992641.23598.python-list at python.org>, Steve
> Lawrence D'Oliveiro wrote:
>> By the way, you don’t need the parentheses.
> But at the same time, if you don't *absolutely know* you don't need the
> parentheses ...
But you can “abolutely know”—it’s all spelled out here
<http://docs.python.org/reference/expressions.html>. Just keep that page
open every time you write Python code.
More information about the Python-list