

from math import factorial





def 	__a     (      A__			:  int			,  A__			:  int			,  A__			:  float       ):
    if successes > trials:
        raise ValueError("successes must be lower or equal to trials"       )
    if trials < 0 or successes < 0:
        raise ValueError("the function is defined for non-negative integers"       )
    if not isinstance(A__			,  A__       ) or not isinstance(A__			,  A__       ):
        raise ValueError("the function is defined for non-negative integers"       )
    if not 0 < prob < 1:
        raise ValueError("prob has to be in range of 1 - 0"       )
    SCREAMING_SNAKE_CASE										=   (prob**successes) * ((1 - prob) ** (trials - successes))
    # Calculate the binomial coefficient: n! / k!(n-k)!
    SCREAMING_SNAKE_CASE										=   float(factorial(A__       )       )
    coefficient /= factorial(A__       ) * factorial(trials - successes       )
    return probability * coefficient


if __name__ == "__main__":
    from doctest import testmod

    testmod()
    print('Probability of 2 successes out of 4 trails')
    print('with probability of 0.75 is:', end=' ')
    print(binomial_distribution(2, 4, 0.75))


def 	__a     (      A__			:  int = 1000       ):
    SCREAMING_SNAKE_CASE										=   3
    SCREAMING_SNAKE_CASE										=   0
    while a < n:
        if a % 3 == 0 or a % 5 == 0:
            result += a
        elif a % 15 == 0:
            result -= a
        a += 1
    return result


if __name__ == "__main__":
    print(f'{solution() = }')