โ† Back to Exercises
๐Ÿ—๏ธ

Classes & Objects โ€ข Exercise 110 of 112

Pet Parade

Mediumโญ 30 XP๐Ÿ† Your XP: 0

๐ŸŽฏ 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!