Respuesta :
Answer:
Just add this and yoyr code should work.
Explanation:
def print_info(self):
print("Car's information:")
print(" Model year:", self.model_year)
print(" Purchase price:", self.purchase_price)
print(" Current value:", self.current_value)
Classes are templates used when an object is to be created while methods are functions that are executed when called or evoked
To declare the attribute purchase_price (type int), we make use of the self keyword, and we initialize the value to 0
So, the declaration of the purchase_price attribute is:
self.purchase_price = 0
To define the print_info() method, we simply evoke the model_year and the purchase_price attributes.
So, the definition of the print_info() method is:
def print_info(self):
print("Car's information:")
print(" Model year:", self.model_year)
print("Purchase price:", self.purchase_price)
Read more about class and methods at:
https://brainly.com/question/15125793