Question: python help please would prefer no imports, but they are allowed if necessary Average Number of Times It Takes to Roll Six on a Die

python help please
would prefer no imports, but they are allowed if necessary  python help please would prefer no imports, but they are allowed

Average Number of Times It Takes to Roll Six on a Die Write a well-documented Python program, hmwk5Q1.py, to simulate the rolling a die until the number SIX is first obtained. Repeat the experiment 100,000 times and print out the "Average Number of Rolls to obtain a Six on a Die", along with the average value. Include the average number of rolls your program calculates as a comment. Hints: Consider two repetition loops in your program. The outer repetition repeats the number of times to perform the experiment. The inner repetition repeats the single event of rolling a die an indeterminate number of times until a six is first observed. Import the random module and use the function randint(). Grading: Correct main (+4 points). Correct for-loop (+4 points). Correct result written as a comment (42 points)

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!