"Local Development Environments (2015)" was retired on July 1, 2026. You are now viewing the recommended replacement.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Basic Object-Oriented Python!
You have completed Basic Object-Oriented Python!
Preview
Tackle equal comparisons between two objects.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Python will need to know what to do.
0:00
For example, using our car class,
how would two instances compare?
0:03
Let's just stick with equals right now.
0:12
What would make two car instances equal?
0:15
Is it matching makes and models or
matching makes, models and years?
0:19
Let's just keep it to makes and models.
0:25
We'll need to add the Dunder method
that handles equal comparisons to our
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up