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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ich versuche, das Monty-Hall-Problem in Python zu simulieren, und habe Probleme beim Refactoring

by Guest » 06 Jan 2025, 23:07

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

Top