MATH 314 Quiz 04

Given on 2025-02-02

  1. 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 named drive which prints Driving on X wheels, where X is the number of wheels of the car.

  2. Write Python code to create a car with not the default number of wheels and call the method drive.