portas
Pequeno script em Python para provar o problema de Monty Hall
O jogo consiste no seguinte: Monty Hall (o apresentador) apresentava 3 portas aos concorrentes, sabendo que atrás de uma delas está um carro (prémio bom) e que as outras têm prêmios de pouco valor.
Na 1ª etapa o concorrente escolhe uma porta (que ainda não é aberta);
De seguida Monty abre uma das outras duas portas que o concorrente não escolheu, sabendo à partida que o carro não se encontra aí;
Agora com duas portas apenas para escolher — pois uma delas já se viu, na 2ª etapa...