def difference(array_a: list, array_b: list) -> list:
    """
    Calculates the differences between two given values.
    :param array_a: list[int | float]
    :param array_b: list[int | float]
    :return:
        - differences - list[int | float]
    """
    differences = []
    if len(array_a) == len(array_b):
        for i in zip(array_a, array_b):
            differences.append(i[0] - i[1])
    return differences