Unit 3 - Stage 8, Bubble #3

App Lab is giving what appears to be an incorrect error message in Bubble #3. My student’s code is correct, and actually matches the teacher “suggested solution”, but when clicking Finish, she receives the error, “App Lab is expecting that you will put the pen down and pick it back up again inside your drawTriangle function.”

Student’s code is below. Can a Code.Org support person please weigh in?

Many thanks!

penUp();
moveTo(150,150);
drawTriangle(100);
moveTo(250,300);
drawTriangle(150);
function drawTriangle(sideLength){
penDown();
moveForward(sideLength);
turnLeft(120);
moveForward(sideLength);
turnLeft(120);
moveForward(sideLength);
turnLeft(120);
penUp();
}

The only way I could get it to work was to add penUp(); right at the beginning of the drawTriangle function, before the penDown(). It doesn’t make sense… but it passes the stage.