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

Laura Mora Freeman
Laura Mora Freeman
8,192 Points

Can someone clarify, why the id of car_one is different of the rest? Thank you

IDs python.

1 Answer

Hi there Laura Mora Freeman ! Are you talking about this video? If so, when the # of doors for all of the instances are 2 (which is what is set in the class attrubutes as the defaults) the ID is the same, but when car_one.doors was set equal to something different than the default attribute for the class, the id changed.

Hopefully that makes sense. If this question is about a different video, please share the link and I would be happy to assist you with that video as well :)

Laura Mora Freeman
Laura Mora Freeman
8,192 Points

Thank you Mel, it was about that video.