โ Back to Exercises
๐๏ธ
Classes & Objects โข Exercise 110 of 112
Pet Parade
๐ฏ Your Mission
Create a class Pet with name and animal attributes and a method introduce() that prints the name, "is a", and the animal. Make three pets: Max the dog, Bella the cat, and Nemo the fish, and call introduce() for each.
๐ main.pyTab = 4 spaces โข Ctrl+Enter = Run
โถ Output
Press โถ Run to see what your code does!
