Question: USE PYTHON Analyzing dice rolls is a common example in understanding probability and statistics. Simulate rolling 2 die one hundred times. Keep track of the

USE PYTHON

Analyzing dice rolls is a common example in understanding probability and statistics. Simulate rolling 2 die one hundred times. Keep track of the total of the two die. Print a histogram in which the total number of times the dice roll equals each possible value is displayed by printing a character, such as *, that number of times.

Begin your script with the following 2 lines:

import random random.seed(2) 

Example output:

2s: ****** 3s: *** 4s: ******** 5s: ******* 6s: *********** 7s: ******************** 8s: ***************** 9s: ********* 10s: ********* 11s: ******* 12s: *** 

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