where do I need to "tab"?

Paul Hankin paul.hankin at gmail.com
Sat Oct 20 12:17:20 EDT 2007


On Oct 20, 3:00 am, "narutocan... at gmail.com" <narutocan... at gmail.com>
wrote:
>     print b if ((b > a) and (b < (a * b))) else a

Everyone else has already pointed out that you need 2.5. As a matter
of style, the above line can be written more cleanly:

print b if a < b < a * b else a

--
Paul Hankin




More information about the Python-list mailing list