input: Write a python function to calculate the magnitude and dot product of vectors.
  assert Vector(1, 2, 2).magnitude() == 3.0
  assert Vector(2, 3, 6).magnitude() == 7.0
  assert Vector(1, 2, 3).dot_product(Vector(4, 5, 6)) == 32
  assert Vector(0, 0, 0).dot_product(Vector(7, 8, 9)) == 0
output: import math
  
  class Vector:
      def __init__(self, x, y, z):
          self.x = x
          self.y = y
          self.z = z
  
      def magnitude(self):
          return math.sqrt(self.x**2, self.y**2, self.z**2)
  
      def dot_product(self, other):
          return self.x * other.x + self.y * other.y + self.z * other.z