Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

dream_car.py
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)

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

1 Answer

have you tried removing some of the extra whitespace?

I had to restart because of a glitch in the workspace

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

np