Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Level: Leave it to the cleaver (Python) - A little hint that might help

Just got stuck on one level before, and it was driving me crazy. As seems lots of people have been having same issue.

Level: Leave it to the cleaver (Python).

The problem is the four spaces.

if hero.isReady(“cleave”):
hero.cleave(target) <-------- This is the problem that I think most people run into when their code is not working.

Thanks!

if hero.isReady("cleave"):
            hero.cleave(target)

Can you show us your whole code?

Andrei

1 Like

Put four instead of twelve spaces

Elijah The Great Programmer of the Prophets

2 Likes

Your indentation is wrong, theres to much space at the front try to press tab after the if statement.
Charlie

2 Likes

And indeed there is as I pointed out.

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.