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 Pointshelp 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)
1 Answer
rydavim
18,814 PointsI 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!
Yoan Herrera
21,137 PointsYoan Herrera
21,137 PointsPlease check you spelling,