Complete the class definition.
class vehicle:
def __init__(self,strModel,strColor):
self.model = strModel
self.color = strColor


def __str__(self):

print(self.model)
print(self.color)

myCar = vehicle('SUV','red')
myCar.display()

Q&A Education