I have completed the probability calculator but instead of getting a probability of .272 I am getting a probability of .252.
Any suggestions on what I’m doing wrong?
In case you are still struggling: I tested parts of your code in my working solution.
The way you draw balls is flawed. I cannot say what exactly, though working around using random.randint() did the trick.
There might be an issue with the random-library here, given the code provides a seed (meaning the random distribution is actually fixed) → the implementation you chose might simply result in another distribution which is technically correct randomness but the test expects another one.
Yeah, your basic process is OK but doesn’t agree with how the test output was generated.
Side note, it doesn’t cost you extra to use words in character names. We don’t have fixed line widths anymore, lol. ball_taken is easier for you (and especially us) to read, understand, and remember than btaken. Longer variable names with words are good.