Course Solutions Uncategorized (Answered):Python Code Issues . . . .

(Answered):Python Code Issues . . . .

Question Description

I am working on a project and have most of it completed, I am having issues with a few items, I have added my issues as comments in the code

class Automobile:

vehicle_list = []

def __init__(self, year, make, model, color, mileage):

self.__year = year

self.__make = make

self.__model = model

self.__color = color

self.__mileage = mileage

Automobile.vehicle_list.append(self)

def add_new_vehicle(VIN):

Automobile.vehicle_list.append(VIN)

def remove_vehicle(VIN):

for vehicle in Automobile.vehicle_list:

if vehicle.get_make()==VIN:

Automobile.vehicle_list.remove(VIN)

def remove_vehicle(self):

if self in Automobile.vehicle_list:

Automobile.vehicle_list.remove(self)

self = None

def get_year(self):

return self.__year

def get_make(self):

return self.__make

def get_model(self):

return self.__model

def get_color(self):

return self.__color

def

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post