from typing import Iterable


def get_entropy(prob_list: Iterable[float], info_list: Iterable[float]):
    """get entropy from list of probability of events and their information"""
    return sum(p * i for p, i in zip(prob_list, info_list))