def dot_product(vector1, vector2):
    """
    Computes the dot product.

    param list vector1, vector2: input vectors
    """
    result = sum([x*y for x, y in zip(vector1, vector2)])
    return result