Place the code in the correct order. Assume the indenting will be correct in the program. OUTPUT: SUV green 1. First part class vehicle: def __init__(self,


Place the code in the correct order.
Assume the indenting will be correct in the program.
OUTPUT:
SUV
green
1. First part
class vehicle:
def __init__(self, strModel, strColor):
self. model = strModel
self. color = strColor
def __str__(self):
return self. model + ‘ ‘ + self. color
def changeColor(self, strColor):
self. color = strColor
2. Second part
myCar. changeColor(‘purple’)
3. Third part
myCar = vehicle(‘SUV’,’red’)
4. Fourth part
print(myCar)


Leave a Reply

Your email address will not be published.