/SantiagoHenao_hw13

Monty Hall problem

Primary LanguagePythonMIT LicenseMIT

SantiagoHenao_hw13

Monty Hall problem

for a simple 200 games try $ python3 SantiagoHenao_MontyHall.py

You can also input $ python3 SantiagoHenao_MontyHall.py (integer n) for a 2n games, for example $ python3 SantiagoHenao_MontyHall.py 10000

And finally you can do $ python3 SantiagoHenao_MontyHall.py (integer n) -s or $ python3 SantiagoHenao_MontyHall.py -s (integer n) to obtain simply the percetages of the games, a "silent" simulation. (First the non-choice results)

It is possible tochange the constant N on line 16 for generalizes the Monty Hall game to N doors, not only 3.