# Define a function with multiple parameters, and use it. # Move to a point. If an enemy is there, attack it. def baove(x,y): hero.moveXY(x, y) enemy = hero.findNearestEnemy() if enemy: hero.attack(enemy) while True: baove(50, 30) baove(30, 10) baove(10, 30)