Shi Mu wrote:
> why the following code report error?
What error does it report? If you show us the error message and the full stack
trace it will be easier to answer your question.
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/ma
why the following code report error?
"""
Is given point in polygon?
"""
def pointInPoly(point, pointsList):
"Return True if point is contained in polygon (defined by
given list of points.)"
assert len(pointsList) >= 3, 'Not enough points to define a
polygon (I require 3 or more.)