Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Advanced Objects Dream Car

how do I turn the self.make and self.model to a str object

I dont really know how to do this I am studying the video and I am still confused

class DreamCar:
    def __init__(self, make, model):
        self.make = make
        self.model = model
    # insert your code here
        def __str__(self):

            return "My dream car is a {} {}".format(self.make, self.model)
Christian Beckett
Christian Beckett
11,121 Points

dw I believe it was just fixed because my functional python code just went through try it again.

1 Answer

Christian Beckett
Christian Beckett
11,121 Points

have you tried removing some of the extra whitespace?

I had to restart because of a glitch in the workspace

Christian Beckett
Christian Beckett
11,121 Points

Try doing the same thing. because your code is correct. but your return isn't doing the function it should be it might be the whitespace or the indentation is incorrect, and dw. I'm having problems with workspace right now as well. I'm not sure what the problem is though.

well treehouse is having a problem where the work checker is not really checking my work if that makes scene

it worked thank you