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 trialgabrielalcaraz
7,694 Pointshow 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)
1 Answer
Christian Beckett
11,123 Pointshave you tried removing some of the extra whitespace?
gabrielalcaraz
7,694 PointsI had to restart because of a glitch in the workspace
Christian Beckett
11,123 PointsTry 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.
gabrielalcaraz
7,694 Pointswell treehouse is having a problem where the work checker is not really checking my work if that makes scene
gabrielalcaraz
7,694 Pointsit worked thank you
Christian Beckett
11,123 Pointsnp
Christian Beckett
11,123 PointsChristian Beckett
11,123 Pointsdw I believe it was just fixed because my functional python code just went through try it again.