1 / 10

Half a Dog

You can already put a dog into Python: dog = {"name": "Rex", "age": 3}.

That's most of what there is to say about him. A name, an age — a dictionary holds all of that easily, and you've been doing exactly this since Module 3.

But a dog isn't only a set of facts. A dog barks.

And there is nowhere in that dictionary to put barking.