input: Write a function to design a Python class that represents a 3-dimensional vector with methods to support vector addition and subtraction. The class should have a constructor to initialize the vector components and methods to print the vector, add two vectors, and subtract two vectors.
  assert Vector(1, 2, 3).addVec(Vector(5, 3, 2)).printVec()==print(6, 5, 5)
  assert Vector(1, 2, 3).subVec(Vector(5, 3, 2)).printVec()==print(-4, -1, 1)
output: class Vector:
      def __init__(self, x, y, z):
          self.x = x
          self.y = y
          self.z = z
  
      def printVec(self):
          print(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)