The Monty Hall Problem (Solved In Python)

As an amateur in both Python and the study of statistical probability, turning the Monty Hall problem into a Python program seemed like a good, entry-level project for me. I managed to create both a playable version of the problem, complete with full user-interaction, and an automated version in which you enter a sample size, the python iterates through the program that number of times while "switching doors" every single time to demonstrate the solution.

I made a short YouTube video to demonstrate the programs.


Currently I'm learning about GUI's in Python, and hope to continue building upon my two examples as I go forward. I will also continue sharing my learnings here on the blog, primarily just to hold myself accountable for retaining and demonstrating the knowledge.

Comments