🐾 Pet Shop · Mission 5 of 6
🏭 The Pet Maker
Writing every field again and again is slow. Make a Pet class: a template that makes pets for you.
Your mission
- Make a Class called Pet with fields name = "", kind = "cat" and energy = 5.
- Make pets = [Pet("Tom"), Pet("Bella", "dog"), Pet("Coco", "rabbit", 2)].
Getting the mission ready…