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 Instant Objects Master Class

help please (master class code challenge)

I am confused about the first part of the thing can you help?

class RaceCar:
    def __init__ (self, color, fuel_remaining, **kwargs):
        for attrabute, value in kwargs.items():
            settar(self, attrabute, value)

Please check you spelling,

1 Answer

18,781 Points

I haven't gotten to this part of the course yet so I'm not sure about other errors, but echoing what Yoan Herrera said - you have a couple of spelling mistakes.

Both attribute and setattr have some mistakes. Note that setattr is standing for set attribute - I find that helpful for remembering. It will also get special syntax highlighting colors as compared to other types of code.

Try those changes and see how it goes. Good luck, and happy coding!