When I call a function after my while loops, it runs the function fine, but since it checked the while loops before it called the function (I need it to do the opposite). So I tried to just call it before the while loops, and the website crashed.
For context, I'm doing AP Comp Sci Principles with codeHS. I'm using the "Karel the Dog" API. The commands are pretty self explanatory, though I wouldn't think it would matter what the commands are doing.
In the picture is the format that crashes. I need to call the "walk" function before the while loops are checked.