input: Write a function to create 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.
  
  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, V):
          return Vector(self.x+V.x, self.y+V.y, self.z+V.z) 
    
      def subVec(self, V): 
          return Vector(self.x-V.x, self.y-V.y, self.z-V.z) 
  
  assert Vector(1, 2, 3).addVec(Vector(5, 3, 2)).printVec() == None
  assert Vector(1, 2, 3).subVec(Vector(5, 3, 2)).printVec() == None
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, V):
          return Vector(self.x+V.x, self.y+V.y, self.z+V.z) 
    
      def subVec(self, V): 
          return Vector(self.x-V.x, self.y-V.y, self.z-V.z) 
  