I\'m writing a code that calculates the probability given a certain amount of successes. I\'m having trouble writing a for loop such that I can categorize some events as fai