play_monty_hall

play_monty_hall#

play_monty_hall(switch=False)#

Return True if the contestant wins one round of Monty Hall.

Parameters:

switch (bool) – If True, then switch doors, otherwise stick with the original door.