The line that is creating the spot Dog is:
7 spot = Dog("lab","black")
This line calls the Dog
class constructor (__init__
method) with the arguments "lab" (for breed) and "black" (for color), thus creating an instance of the Dog
class named spot
.