code: def dotproduct(a, b):
      "Calculates the dotproduct between two vecors"
      assert(len(a) == len(b))
      out = 0
      for i in range(len(a)):
          out += a[i] * b[i]
      return ouf dotproduct(a, b):
      "Calculates the dotproduct between two vecors"
      assert(len(a) == len(b))
      out = 0
      for i in range(len(a)):
          out += a[i] * b[i]
      return out
docs: Calculates the dotproduct between two vecors