code: def vector_dot(vector1, vector2):
      
      try:
          if vector1 is None or len(vector1) == 0 or vector2 is None or len(vector2) == 0:
              raise ValueError("Input vectors cannot be empty")
      except TypeError as e:
          print("An error occurred: {}".format(e.args[-1]))
          raise TypeError("Input must be a list or tuple")
      except Exception:
          raise
  
      # Compute dot product
      prod = 0.0
      for v1, v2 in zip(vector1, vector2):
          prod += v1 * v2
  
      # Return the dot product of the input vectors
      return prod
docs: Computes the dot-product of the input vectors.
  
      :param vector1: input vector 1
      :type vector1: list, tuple
      :param vector2: input vector 2
      :type vector2: list, tuple
      :return: result of the dot product
      :rtype: float