Heads up! To view this whole video, sign in with your Treehouse account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Emulating Built-ins!
You have completed Practice Emulating Built-ins!
Preview
View the practice challenge and learn the tasks to complete.
This video doesn't have any notes.
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
[MUSIC]
0:00
Hi there, Pythonistas, Megan here.
0:00
And in this practice session you'll
be testing your knowledge of
0:02
emulating built-in methods
inside of given classes.
0:06
On the screen here you can see I
have two classes one called Dog and
0:11
the other called Shelter.
0:15
And what we're going to do is
you're going to add a dunder
0:18
string method to Dog that
will return the pet's name.
0:22
You'll also add a dunder equals
method to class Dog that will
0:27
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