Write a Python program to create a Vehicle class with max_speed and mileage instance attributes.
max_speed
mileage
class Vehicle: def __init__(self, max_speed, mileage): self.max_speed = max_speed self.mileage = mileage modelX = Vehicle(240, 18) print(modelX.max_speed, modelX.mileage)
Explanation:
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Explanation:
need an explanation for this answer? contact us directly to get an explanation for this answer