WEBVTT

1
00:00:00.000 --> 00:00:02.390
This method controls how your
objects are represented as a string.

2
00:00:02.390 --> 00:00:04.622
When you print out
an instance of your class,

3
00:00:04.622 --> 00:00:06.806
you get something like
this in the console.

4
00:00:10.096 --> 00:00:13.450
Not the most useful message, right?

5
00:00:13.450 --> 00:00:17.460
Well, with Dunder string,
you can tell Python what to do here.

6
00:00:18.510 --> 00:00:21.384
Let's add a Dunder string
method to our class.

7
00:00:21.384 --> 00:00:25.852
This will override what is currently
happening with what we want to happen

8
00:00:25.852 --> 00:00:26.509
instead.

9
00:00:28.500 --> 00:00:30.000
I'm going to place my method
right here after the Dunder init.
