Connect to GitHub to push and pull your project files to a repository.
On the page that opens, create a token with repo scope, copy it, then paste it below.
Paste the personal access token you created on GitHub with repo scope.
Click Refresh to load commit history
Exercise Info
Goals
To apply array indexing in numpy
To use for loops in numpy
Instructions
The code below does one trial (experiment) of the 10 heads in a row game, but that doesn't give us a very good idea of how long it takes in general. We should do the experiment many times to get a better sense. Your task in this exercise is to put the starter code inside of a for loop that loops through num_trials times and stores the number of flips it took for each trial as an element in the trials numpy array. All you should have to do is add a for loop, put all of the code inside, and assign num_flips to an index in trials. Then, we can use the power of matplotlib to plot a histogram showing us a distribution of the number of heads it took over all experiments.