Question: 4. Define the speed method in the Car class, and output: the driving speed is 60km/h,which one is correct (A) define speed(): print(the driving speed

4. Define the speed method in the Car class, and output: the driving speed is 60km/h,which one is correct (A) define speed(): print("the driving speed is 60km/h") (B) define speed(self): print("the driving speed is 60km/h) define speed() print("the driving speed is 60km/h) define speed(self) print("the driving speed is 60km/h) (c) (D)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
