Question: Python Question: Problem 02 unfair dice Do the same as problem 01, but now our die is not fair 21 getting 3 is getting 4

Python Question:

Python Question: Problem 02 unfair dice Do the same as problem 01,

Problem 02 unfair dice Do the same as problem 01, but now our die is not fair 21 getting 3 is getting 4 is , getting 5 is , getting 6 is 2. define a function that calculate probability of any given sequence to appear Your code should be able to do the following: note that you dont have to use the comments I wrote below, but you should winte your own comments so that our grader wil understand what your code means. For each roll in rolls ['1,133345','123456',12','17] Calculate the probability of the roll shows up, round the probability to 5 decimal place Print your result as following form: roll = 1, probability = 0.28571 rolls [ . 1 , , , 133345 , , , 123456' , ' 12' , ' 17' ] Problem 02 unfair dice Do the same as problem 01, but now our die is not fair 21 getting 3 is getting 4 is , getting 5 is , getting 6 is 2. define a function that calculate probability of any given sequence to appear Your code should be able to do the following: note that you dont have to use the comments I wrote below, but you should winte your own comments so that our grader wil understand what your code means. For each roll in rolls ['1,133345','123456',12','17] Calculate the probability of the roll shows up, round the probability to 5 decimal place Print your result as following form: roll = 1, probability = 0.28571 rolls [ . 1 , , , 133345 , , , 123456' , ' 12' , ' 17' ]

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!