Question: python [15] Consider a game where the contestant is presented with three doors. Behind one of the doors is a car (the prize'), behind the
![python [15] Consider a game where the contestant is presented with](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4530745630_07066f45306c32d6.jpg)
python
[15] Consider a game where the contestant is presented with three doors. Behind one of the doors is a car (the prize'), behind the other two are goats. The contestant chooses a door, but the host (who knows where the prize is) opens one of the other two doors (never revealing the prize). The contestant is now given the choice of switching to the other door. Create a simulation that plays the game N times (input by the user ), using each of the two strategies (switch door selected or not switch door selected). Estimate the chance of winning for each of the two strategies as a ratio of wins to the total number of attempts N. Run the simulation and report your results for N = 10000 and N = 100000 games
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
