🐾 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

  1. Make a Class called Pet with fields name = "", kind = "cat" and energy = 5.
  2. Make pets = [Pet("Tom"), Pet("Bella", "dog"), Pet("Coco", "rabbit", 2)].

Getting the mission ready…