Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started