Task
Define a function unpack_dolls that takes one parameter:
|
|
|
|
|
|
|
RussianDoll(4, 3, "purple")
|
The parameter is of type RussianDoll, this is a simple class that contains three properties:
- Size - the size of the doll.
- Colour - the colour of the doll.
- Child doll - another RussianDoll object that this doll has inside of it, or None.
The RussianDoll class is given in the starter code below. When the unpack_dolls function is called it should have the same output as the example below.