class Car: def __init__(self, brand, color): self.brand=brand self.color=color def drive(self): print(f"The {self.color} {self.brand} is driving") my_car=Car("Tesla", "red") my_car.drive()