Level 21 The Dread Door


#1

I am new here. Have not learned the while true loop and its asking me to do while true loop.
Tried
While (true):
hero.attack(“Door”);

also tried in javascript and it didnt work. Please help! Thank you.


#2

The while True: loop varies by language. Are you using javascript or python?

In python it is:

while True:
    self.attack('thing I am attacking')

Notice small ‘w’ in while and big ‘T’ in true and the 4 spaces on the next line.
Also, you are self, not hero.


#3

Poor mkaz somehow ended up in our new, not-yet-tested language. I’ve reset him to Python so he should be able to continue.