Thursday, January 29, 2009

Chapter 2 -- Page 75 -- Problem 2.38

This problem asks you to create a boolean function called inCircle that returns True if the point is in the circle, False otherwise. Unfortunately, there is a local variable in the montePi function already called inCircle.  For clarity, use a different name for the boolean function...perhaps isInCircle or pointInCircle.

No comments:

Post a Comment