Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python 3, include doc strings. 2. (a) write 100 random points in 2-space to a fi

ID: 3738779 • Letter: P

Question

Python 3, include doc strings.

2. (a) write 100 random points in 2-space to a file named 'cloud.pt'; each random point should lie in the square bounded by (-300,-300) and (300,300); all point coordinates should be floats (b) read the data in this file into a list of points; each point should be stored in a float 2-tuple; so the list of points is a list of 2-tuples each element of the list is a 2-tuple; for example, the beginning of the list may be (100.1, -3.4), (-1.2, 2.3),. (c) draw these points (called a point cloud) using turtle graphics (d) (advanced) count the number of points inside the circle of radius 300 at the origin

Explanation / Answer

I am not submitting entire code for the problem. However i am showing how to get randon numbers between a range in python

Use random.uniform(a, b):