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
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.