Car.py The Car.py file will contain the definition of a Car class. The Car class will hold information about the cars (make, model, year, and price). We will define the Car attributes as follows: make - string value representing the brand of the car (eg. Nissan, Tesla, Toyota, Ferrari). Your program must store this attribute in uppercase characters model - string value representing the model of the car (eg. Electra, Model3, Prius, Portofino). Your program must store this attribute in uppercase characters year - integer value representing the year of the car (eg. 2010, 2000, 1963) price - integer value representing the price value of the car (eg. 20000, 30000, 25000) You will write a constructor that allows the user to construct a Car object by passing in values for the make, model, year, and price. __init__(self, make, model, year, price) In addition to the constructor

Respuesta :

The Car.py program is an illustration of constructors and classes in Python

Constructors are used to create the instant of objects

The program in Python

The program written in Python is as follows:

class Car:

make = ""

model = ""

year = 0

price = 0

def  __init__(self, make, model, year, price):

 self.make = make.upper()

 self.model = model.upper()

 self.year = year

 self.price = price

def display(self):

 print("Make = " + str(self.make.upper()))

 print("Model = " + str(self.model.upper()))

 print("Year = " + str(self.year))

 print("Price = " + str(self.price))

Read more about Python programs at:

https://brainly.com/question/26497128

#SPJ1