class Car(object):
    def __init__(self, price, speed, fuel, mileage):
        self.price = price
        self.speed = speed
        self.fuel = fuel
        self.mileage = mileage
        if int(self.price)>10000:
            self.tax = 0.15
        else:
            self.tax = 0.12

    def display_all(self):
        print "Price :", int(self.price)
        print "Speed :"+ self.speed
        print "Fuel :"+ self.fuel
        print "Mileage :"+ self.mileage
        print "tax: ", self.tax
        print " "


car1 = Car(200, "35mph","Full","15mpg")
car1.display_all()

car2 = Car(2000, "5mph","Not Full","105mpg")
car2.display_all()

car3 = Car(2000, "15mph","Kind of Full","95mpg")
car3.display_all()

car4 = Car(2000, "25mph","Full","25mpg")
car4.display_all()

car5 = Car(2000, "45mph","Empty","25mpg")
car5.display_all()

car6 = Car(20000000, "35mph","Empty","15mpg")
car6.display_all()


ec4a78f90731c19d3efe13569a1738f23f810807
class Car(object):
    def __init__(self, price, speed, fuel, mileage):
        self.price = price
        self.speed = speed
        self.fuel = fuel
        self.mileage = mileage
        if int(self.price)>10000:
            self.tax = 0.15
        else:
            self.tax = 0.12

    def display_all(self):
        print "Price :", int(self.price)
        print "Speed :"+ self.speed
        print "Fuel :"+ self.fuel
        print "Mileage :"+ self.mileage
        print "tax: ", self.tax
        print " "


car1 = Car(200, "35mph","Full","15mpg")
car1.display_all()

car2 = Car(2000, "5mph","Not Full","105mpg")
car2.display_all()

car3 = Car(2000, "15mph","Kind of Full","95mpg")
car3.display_all()

car4 = Car(2000, "25mph","Full","25mpg")
car4.display_all()

car5 = Car(2000, "45mph","Empty","25mpg")
car5.display_all()

car6 = Car(20000000, "35mph","Empty","15mpg")
car6.display_all()

