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

Can Not Get Past the First Task - No Idea Why

I have done everything that challenge asks for and I have looked and looked for typos - but I can not figure out why this code is not passing.

I even tried restarting my browser in case I was getting a false fail on this challenge.

I could use some help to see if I am missing something.

class RaceCar:
    def __init__(self, color, fuel_remaining, **kwargs):
        self.color = color
        self.fuel_remaining = fuel_remaining

        for key, value in kwargs.items():
            setattr(self, key, value)
Steven Parker
Steven Parker
215,939 Points

How odd. I use Chrome and have never had a problem with the challenges or workspaces.

1 Answer

I started another browser, Firefox instead of Chrome, went to the code challenge and typed in the exact same code and it passed. I wasted more than a half hour going over it and over it. That was a pain. But I won't make that mistake again.