class practice questions python

Solutions on MaxInterview for class practice questions python by the best coders in the world

showing results for - "class practice questions python"
Youna
09 Jul 2019
1class Vehicle:
2    def __init__(self, max_speed, mileage):
3        self.max_speed = max_speed
4        self.mileage = mileage
5
6modelX = Vehicle(240, 18)
7print(modelX.max_speed, modelX.mileage)