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

So when replicating as is on the video. I always get not equal.

I am running python 3.9 in VScode and after doing some research I was able to get it running with

def __eq__(self, other: object) -> bool:
    return self.make == other.make and self.model == other.model

Is this just a difference in versions or what? Again I want to preface that my code is IDENTICAL to the video.

1 Answer