Question: python help Write a Python program to simulate the following variant of the Monty Hall problem. Suppose that, in the beginning, the host does not
python help

Write a Python program to simulate the following variant of the Monty Hall problem. Suppose that, in the beginning, the host does not know where the prize is located After contestant picks a door, the host opens another door uniformly at random between the two other doors). There are two situations: Aborted game: if the host happens to open a door with the prize, this game does not count and everything will be reshuffled. A new game will start after the reshuffling. Completed game: otherwise the game continues as usual. The host asks whether the contestant wants to change the door he/she picked. Now for the contestant, will changing-the-door increase his/her odd to win? Write a Python program to simulate the contestant's winning odd (by running many games) Requirement: define a function with name "simulate game.Q4" ### Solution to Question 4 def sinulate-game-Q40% YOur codes... Your program should return the odds of winning for both strategies (changing door and not-changing door) over 10000 completed games. You should use functions from the Python "random" module in this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
