MATH 314 Quiz 04
Given on 2025-02-02
-
Write a Python class named
Car. You should be able to set the number of wheels for each created car, and the default number of wheels should be 3. There should be a method nameddrivewhich printsDriving on X wheels, whereXis the number of wheels of the car. -
Write Python code to create a car with not the default number of wheels and call the method
drive.