Loading…
Each exercise runs in a fresh environment, so define the Car class again (make and model stored in __init__). Create Car(Toyota, Corolla) and print its make and model on one line, separated by a space.
Expected output: Toyota Corolla
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.