Answered step by step
Verified Expert Solution
Link Copied!
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:

image text in transcribed

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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students explore these related Databases questions