I’ve completed this level - kind of. It works and says successful, however I don’t understand what the line,
# Reassign the coin variable to the nearest item
is supposed to do. This is blank in my code and it runs fine.
`while True: coin = hero.findNearest(hero.findItems()) # While a coin exists: if coin: # Move to the coin. hero.moveXY(coin.pos.x, coin.pos.y) # Reassign the coin variable to the nearest item. (Yellow arrow pointing at this line) `
There is still a yellow arrow pointing at this line indicating that I need to write something there but it seems to run fine without it.
Please explain how that is supposed to work. Obviously I’m missing something.