Hello! I am struggling on understand the task as mentioned in the headline. How to expect 3 balls when i draw 4?
Code for the testunit:
def test_prob_experiment(self):
...
probability = prob_calculator.experiment(hat=hat, expected_balls={"blue":2,"green":1}, num_balls_drawn=4, num_experiments=1000)
...
Drawing 4 balls will never lead to “blue”: 2, “green”:1.
I cant see tho logic.
Cheers