input: Write a python function to calculate the dot product of two vectors.
  assert dotProduct([1, 2, 3], [4, 5, 6]) == 32
  assert dotProduct([1, 0, -1], [-1, 0, 1]) == -2
  assert dotProduct([2, 3], [2, 1]) == 7
output: def dotProduct(vector1, vector2):
      return sum(x * y for x, y in zip(vector1, vector2))