Question: In Python def rollDistribution(n): ''' (10 points) Function that rolls a pair of dice n number of times. Returns a list of ints, diceTally, that

In Python

def rollDistribution(n): ''' (10 points) Function that rolls a pair of dice n number of times. Returns a list of ints, diceTally, that keeps track of the number of times a certain sum occurs. - Use the technique discussed in lecture where you can create a list of 13 integers, where the index of the list represents a particular dice roll value, and the value of that position represents the number of times that dice roll occurred. - Note: diceTally[0] and diceTally[1] will always be 0 since having rolling a pair of dice will never result in 0 or 1. - Your algorithm should call rollDice() n number of times when populating your list. ''' return "stub"

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!