from operator import mul
from operator import add


def dot_product(vector1, vector2):
    """
    Compute the dot product of two vectors.

    :param vector1: list of numbers representing a vector
    :param vector2: list of numbers representing a vector
    :return: the dot product of the two vectors
    """
    return vector1.map2(mul, vector2).reduce(add, 0)