Python Object-Oriented Python Advanced Objects Dream Car

jayda hendrickson
jayda hendrickson
2,545 Points

__str__

Okay I'm just a little confused on what this challenge is asking me to do

dream_car.py
class DreamCar:
    def __init__(self, make, model):
        self.make = make
        self.model = model
    def __str__(self):
        return 'My dream car is a {} {}.'.format(self.make and self.model)

1 Answer

Replace the and with a comma in your return statement, and you're golden.