I passed the PHD Kitty level a while ago, but now that my students are doing it they are getting a “pet is not defined” error. When I went back to see what they were doing wrong, my code had the same error. This is what I have:
Teach your pet to answer questions!
Luckily, all the answers are “Two”
# Use pet.say() to answer "Two"
Now relax and watch the show.
hero.say(“One plus one is…?”)
hero.say(“x^3 - 6x^2 + 12x - 8 = 0. What is x…?”)
hero.say(“How many moons does Mars have…?”)