Question: Question 4. Is a list of points within a rectangle? - 4 points Modify your function from the previous question so it takes a list

Question 4. Is a list of points within a
Question 4. Is a list of points within a rectangle? - 4 points Modify your function from the previous question so it takes a list of points rather than a single point and returns True only if all points in the list are in the rectangle. For example, allIn( (0, 0), (5,5), [(1, 1), (0,0), (5,5) ]) should return True but allIn ( (0, 0), (5,5), [(1, 1), (0,0), (5,6) ]) should return False Use the same assumption as above about the placement of the points. Download the notebook to do your work in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!