Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Level 21 The Dread Door


I am new here. Have not learned the while true loop and its asking me to do while true loop.
While (true):

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


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.


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.