Build a Car Class

Define Car with brand, model, and a color that defaults to blue. Its display_info(), start_engine(), and stop_engine() methods return the specified car details. car_messages(brand, model, color='blue') must return those three messages in that order.

Examples

  • ["Honda","Civic"]["Brand: Honda, Model: Civic, Color: blue","Engine of Honda Civic started","Engine of Honda Civic stopped"]

Your solution

Python

Results

Python starts when you run or submit this challenge.

Back to Lesson