Question: using python Question2: Assume the following rules: If the dice shows 1 or 2 spots, my net gain is (-2*value of dice) dollars. If the
using python

Question2: Assume the following rules: If the dice shows 1 or 2 spots, my net gain is (-2*value of dice) dollars. If the dice shows 3 or 4 spots, my net gain is 1 dollars. If the dice shows 5 spots, my net gain is (2*value of dice) dollars. If the dice shows 6 spots, my net gain is -5 dollars. A) Define a function to simulate a game with the above rules, assuming a D6, and compute the net gain of the player over any given number of rolls. B) Compute the net gain for 5, 50, and 500 rolls In [ ]: In [ ]: In [ ]: In [ ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
