Complete the code to define a class named Car.
class [1]: pass
The class name should be Car to model a car object.
Complete the code to add an __init__ method that sets the car's color.
class Car: def __init__(self, [1]): self.color = color
The parameter color is needed to set the car's color attribute.
Fix the error in the method to return the car's color.
class Car: def __init__(self, color): self.color = color def get_color(self): return self.[1]
The attribute is named color, so the method should return self.color.
Fill both blanks to create a method that changes the car's color.
class Car: def __init__(self, color): self.color = color def [1](self, [2]): self.color = new_color
The method name should be change_color and the parameter new_color to update the color.
Fill all three blanks to create a Car object and print its color.
my_car = [1]([2]) print(my_car.[3]())
Create a Car object with color 'red' and call the get_color() method to print it.
