input: Write a function to calculate the dot product of two given lists of equal length. The function should return the result of the dot product. If the lists are not of equal length, raise a ValueError.
  assert dot_product([1,2], [3,4])==11
  assert dot_product([0,1], [2,3])==3
  assert dot_product([-1, 2, 5], [2, -1, 3])==15
  assert dot_product([], [])==0
  def dot_product(list1, list2):
    if len(list1) != len(list2):
      raise ValueError("The length of the two lists must be equal")
    product = 0
    for i in range(len(list1)):
      product += (list1[i] * list2[i])
    return product
output: def dot_product(list1, list2):
    if len(list1) != len(list2):
      raise ValueError("The length of the two lists must be equal")
    product = 0
    for i in range(len(list1)):
      product += (list1[i] * list2[i])
    return product