On Sat, Aug 16, 2008 at 12:07 PM, Matti/Tritlo <[EMAIL PROTECTED]> wrote:

Some quick notes:

> print options()

No need for the 'print' here, options() already prints. The extra
print will print the return value of options(), which is None.

> def triangle_area(width, height):
>     return width * height / 2

This will give an incorrect result if width and height are both odd
integers. Use 2.0 instead of 2 to force float division.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to