def general_probability(coins_prob: list[float], events_prob: list[float]) -> float:
    """Function developed ro find the general probability

    Args:
        coins_prob (list[float]): probability of each coin
        events_prob (list[float]): probability of getting current side

    Returns:
        float: probability of getting the current side
    """
    return sum(
        coin_prob * event_prob for coin_prob, event_prob in zip(coins_prob, events_prob)
    )