input: Write a function that defines a Python class to represent a 3-dimensional vector with methods to support vector addition and subtraction. The class should have a constructor to initialize the vector with three components (x, y, z). It should also have methods to print the vector, add two vectors, and subtract two vectors.
  
  
  assert Vector(1, 2, 3).addVec(Vector(4, 5, 6)).printVec() == "(5, 7, 9)"
  assert Vector(1, 2, 3).subVec(Vector(4, 5, 6)).printVec() == "(-3, -3, -3)"
  assert Vector(0, 0, 0).addVec(Vector(-1, -1, -1)).printVec() == "(-1, -1, -1)"
  assert Vector(0, 0, 0).subVec(Vector(-1, -1, -1)).printVec() == "(1, 1, 1)"
  assert Vector(1, 1, 1).addVec(Vector(0, 0, 0)).printVec() == "(1, 1, 1)"
  
output: class Vector:
      def __init__(self, x, y, z):
          self.x = x
          self.y = y
          self.z = z
  
      def printVec(self):
          return f"({self.x}, {self.y}, {self.z})"
  
      def addVec(self, other):
          return Vector(self.x + other.x, self.y + other.y, self.z + other.z)
  
      def subVec(self, other):
          return Vector(self.x - other.x, self.y - other.y, self.z - other.z)