Question
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice? In short, it is to your advantage to switch. You can read the details here: https://en.wikipedia.org/wiki/Monty_Hall_problem (Links to an external site.)Links to an external site. Your task is to write a program to simulate the game. This means your program will automatically play the game 100,000 times. The only input the user will give is if they want to stay with their original pick, or switch picks after the first goat is revealed. Their pick will be the decision for all 100,000 simulations. Solve using python 3
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