Now write a module, saved as to create two objects driver.py, Car below (you can assign them any reasonable values). Set the mileage of the first car to 15 miles, and the mileage of the second car to 5 miles. There should be no errors when I run the module as python assuming your class and this file are in the same driver.py, Car directory. (9 points) Let’s imagine you wanted to implement different types of cars. Rather than write a field for the type, you want to make sub-classes of your Car class. Show how you would inherit from the base class Car in a new class below (you don’t have to implement anything else in this Hatchback question). You may assume this file would be saved as hatchback.py. (2 points)
Now write a module, saved as driver.py, to create two Car objects below (you can assign them any reasonable values). Set the mileage of the first car to 15 miles, and the mileage of the second car to 5 miles. There should be no errors when I run the module as python driver.py, assuming your Car class and this file are in the same directory. (9 points) Let’s imagine you wanted to implement different types of cars. Rather than write a field for the type, you want to make sub-classes of your Car class. Show how you would inherit from the base class Car in a new class Hatchback below (you don’t have to implement anything else in this question). You may assume this file would be saved as hatchback.py. (2 points)
Sample_Final_1.docx