In Ace of Coders, this code errors out: ``` python while True: outer() def outer(): enemies = hero.findEnemies() ``` <img width="1025" alt="screenshot 2016-05-22 13 47 04" src="https://cloud.githubusercontent.com/assets/99704/15456387/c1e59f2e-2023-11e6-93ee-3867bd600639.png"> If I `def outer()` before the `while True:`, it works. Is JS-style hoisting not working? If so, can we make it work, or can we get a better error message?
In Ace of Coders, this code errors out:
If I
def outer()before thewhile True:, it works.Is JS-style hoisting not working? If so, can we make it work, or can we get a better error message?