Python code help | Computer Science homework help

Sally averages 5 strokes a hole when she plays golf. One day, she took 40 strokes to complete the first nine holes. Her partner conjectured

that she would probably regress to the mean and take 50 strokes to complete the next nine holes. Do you agree with her partner? Needs to be shown in Python code…

1) Make sure to import random and pylab;

(2) Consider defining strokes to return a random choice among the values: 3, 4, 5, 6 and 7;

(3) Consider defining holes (9 of them for this problem);

(4) Consider defining a loop that can loop through a large number of games;

(5) Then plot your strokes.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.

Click Here to Make an Order Click Here to Hire a Writer