I recently found out via Reddit that the Monty Hall problem page on Wikipedia has caused quite a lot of heated dispute, mainly because people don't agree on that way in which the problem is solved.
If you haven't heard of the Monty Hally problem, here's a quote found on the Wikipedia page that describes the problem.
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?
Well, I thought it would be interesting to simulate the problem in Python to show that it is in fact to your benefit to switch doors from your original choice.
Here is my output run running the test 1,000,000 times.
This is clearly not a textbook way of solving the problem, but it is evidence enough for me to believe the accepted answer.