input: 
  from typing import List
  
  def dot_product(list1: List[int], list2: List[int]) -> int:
      """Calculates the dot product of two given lists.
      >>> dot_product([1,2], [3,4])
      11
      >>> dot_product([5,6], [7,8])
      83
      """
      if len(list1) != len(list2):
          raise ValueError("The two lists must be of the same length.")
      return sum(a * b for a, b in zip(list1, list2))
  
output:     if len(list1) != len(list2):
          raise ValueError("The two lists must be of the same length.")
      return sum(a * b for a, b in zip(list1, list2))