please help if you know how to do this level.
post your code so we can help u
Line 19. You have the hero.say a set number. Is the distance to every enemy going to be 14? This is why we use variables. That way, no matter what the distance is, the hero will say that number. Use your variables instead of fixed numbers.
how do i do that ???
a = hero.findNearestEnemy().type #<- This variable will not be fixed to a certain type like "Ogre" hero.say(a) #OUTPUT: "Ogre" "Munchkin" "Witch" "Warlock"
i don’t follow???
do you have something that says herosays() or something like that