Exemple #1
0
def main():

    create_mammals()

    car = Car()

    car.set_make()
    car.set_model()
    car.set_milage()
    car.set_price()
    car.set_color()
    car.set_maximum_load()
    car.set_size_of_trunk()

    print(car)

    dice = Dice()
    dice.roll_the_dice()
    dice.get_side_up()

    for object in mammal_list:

        if object.id == dice.side_up:
            print("Selected animal: ")
            print(object)
            check_car_max_load(car, object)
def main():

    honda = Car()

    honda.set_make()
    honda.set_model()
    honda.set_milage()
    honda.set_price()
    honda.set_color()
    honda.set_maximum_load()
    honda.set_size_of_trunk()

    print(honda)