Question: We can use np . random.choice to simulate multiple trials. After finishing the Data 8 project, Stephanie decides to spend the rest of her night

We can use np.random.choice to simulate multiple trials.
After finishing the Data 8 project, Stephanie decides to spend the rest of her night rolling a standard six-sided die. She wants to know what her total score would be if she rolled the die 1000 times. Write code that simulates her total score after 1000 rolls.
Hint: First decide the possible values you can take in the experiment (point values in this case). Then use np.random.choice to simulate Stephanies rolls. Finally, sum up the rolls to get Stephanie's total score.

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 Programming Questions!