Build a Probability Calculator Project - Build a Probability Calculator Project

image

you should see some more than that, but there you have a False that should be True

The hat is the same before and after a draw.

If you draw one ball, you need to remove it from the hat, as you do here:

self.contents.remove(ball)

If the argument is larger than the number of balls, you need to return all of the balls, and so they should no longer be in the hat, you need to remove them.

If you screenshot here the hat has the same # of balls in it before and after drawing