Estimating Pi with a dart board (and python!)

Task 1 – Warm up

To see how to draw circles, plot points and pick random numbers have a look at this code and adapt it to draw a face:

Task 2

Find the area of the square below

Find the area of the circle

Find the answer to  (4 x area of circle / area of square)

Task 3

Adapt the app below to estimate pi. You are aiming for this:

Note that the formula for a circle is x**2+y**2=r**2

where ** on python is squared.

Leave a Reply

Your email address will not be published. Required fields are marked *