creating a class and making instances from it, cant get this to work .
class Car(object): def __init__(self, price, speed, fuel, mileage, price_plus_tax=value): self.price = price self.speed = speed self.fuel = fuel self.mileage = mileage self.price_plus_tax = price_plus_tax if price > 10000: self.tax = 0.15 else: self.tax = 0.12 self.displayAll() def price_plus_tax(self, price_plus_tax=value): if price > 10000: self.price_plus_tax = self.price + self.price * self.tax; else: self.price_plus_tax = self.price + self.price * self.tax; self.displayAll() def displayAll(self): print ('Price: ' + str(self.price)) print ('Speed: ' + str(self.speed) + ' mph') print ('Fuel: ' + self.fuel) print ('Mileage: ' +str(self.mileage) + ' mpg') print ('Tax: ' + str(self.tax)) print ('price_plus_tax: ' + str(self.price_plus_tax)) #six instances of Car class car1 = Car(5000, 40, 'Half Full', 10000) car2 = Car(15000, 100, 'Full', 65000) car3 = Car(2000, 50, 'Quarter Full', 300000) car4 = Car(10000, 100, 'Mostly Full', 25000) car5 = Car(17000, 75, 'Full', 40000) car6 = Car(9000, 90, 'Empty', 55000)