Page 1 of 1

Ich versuche, das Monty-Hall-Problem in Python zu simulieren, und habe Probleme beim Refactoring

Posted: 06 Jan 2025, 23:07
by Guest
ok, das ist also, was ich habe

Code: Select all

import random

def notThese(num1, num2):
for j in range(1,4):
if j != num1 and j != num2:
return j

i=0
wins= 0

change = True
times = 9000

while i