input: Write a function to create a class in Python that stores and processes data in a Car object with attributes make, model, color, and mileage. The class should also include methods to accelerate and decelerate the car by setting the speed attribute.
  class Car:
      def __init__(self, make, model, color, mileage):
          self.make = make
          self.model = model
          self.color = color
          self.mileage = mileage
          self.speed = 0
  
      def accelerate(self, speed):
          self.speed = speed
  
      def decelerate(self, speed):
          self.speed = speed
  
  assert Car("Toyota", "Camry", "Blue", 50000).make=="Toyota"
  assert Car("Toyota", "Camry", "Blue", 50000).model=="Camry"
  assert Car("Toyota", "Camry", "Blue", 50000).color=="Blue"
  assert Car("Toyota", "Camry", "Blue", 50000).mileage==50000
  car = Car("Toyota", "Camry", "Blue", 50000)
  car.accelerate(60)
  assert car.speed==60
  car.decelerate(40)
  assert car.speed==40
output: class Car:
      def __init__(self, make, model, color, mileage):
          self.make = make
          self.model = model
          self.color = color
          self.mileage = mileage
          self.speed = 0
  
      def accelerate(self, speed):
          self.speed = speed
  
      def decelerate(self, speed):
          self.speed = speed