def dot_prod(a, b):
    """
    Calculates the dot product of two lists with values

    :param a: first list
    :param b: second list
    :return: dot product (a . b)
    """
    return sum([i*j for (i, j) in zip(a, b)])