Given the following class definition, which of the following…
Given the following class definition, which of the following is the correct way to create an instance of the Car class and call the drive() method? class Car: def __init__(self, make, model, year=2022): self.make = make self.model = model self.year = year self.mileage = 0 def drive(self, miles): self.mileage += miles
Read Details