This is my first post so in advance thanks to anyone who helps me. ↓↓This is my code below↓↓
enemy = hero.findNearestEnemy()
# Use if to make sure enemy exists before checking its distance.
distance = hero.distanceTo(enemy)
if distance < 5:
It keeps on saying: “else must be paired with an if.” Please help